don't redundantly repeat field names (clippy::redundant_field_names)

This commit is contained in:
Matthias Krüger 2020-03-21 13:53:34 +01:00
parent 5566a1cee4
commit 3b4c2f67ad
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ pub type NormalizedTy<'tcx> = Normalized<'tcx, Ty<'tcx>>;
impl<'tcx, T> Normalized<'tcx, T> {
pub fn with<U>(self, value: U) -> Normalized<'tcx, U> {
Normalized { value: value, obligations: self.obligations }
Normalized { value, obligations: self.obligations }
}
}

View file

@ -47,7 +47,7 @@ struct PredicateSet<'tcx> {
impl PredicateSet<'tcx> {
fn new(tcx: TyCtxt<'tcx>) -> Self {
Self { tcx: tcx, set: Default::default() }
Self { tcx, set: Default::default() }
}
fn insert(&mut self, pred: &ty::Predicate<'tcx>) -> bool {

View file

@ -2792,7 +2792,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
trait_def_id, trait_obligations
);
VtableTraitAliasData { alias_def_id, substs: substs, nested: trait_obligations }
VtableTraitAliasData { alias_def_id, substs, nested: trait_obligations }
})
}