Skip to content

Commit

Permalink
don't redundantly repeat field names (clippy::redundant_field_names)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Mar 21, 2020
1 parent 5566a1c commit 3b4c2f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc_infer/traits/project.rs
Expand Up @@ -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 }
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/librustc_infer/traits/util.rs
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_trait_selection/traits/select.rs
Expand Up @@ -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 }
})
}

Expand Down

0 comments on commit 3b4c2f6

Please sign in to comment.