Skip to content

Commit 93de5d8

Browse files
committed
Fix clippy::redundant_field_names
1 parent b8a7b87 commit 93de5d8

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

chalk-engine/src/logic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ impl<'forest, I: Interner> SolveState<'forest, I> {
14831483
.collect();
14841484

14851485
let subst = Canonical {
1486-
binders: binders,
1486+
binders,
14871487
value: AnswerSubst {
14881488
subst,
14891489
constraints: Constraints::from_iter(self.context.program().interner(), constraints),

chalk-solve/src/clauses/builtin_traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub fn needs_impl_for_tys<I: Interner>(
105105
builder.push_clause(
106106
trait_ref,
107107
tys.map(|ty| TraitRef {
108-
trait_id: trait_id,
108+
trait_id,
109109
substitution: Substitution::from1(db.interner(), ty),
110110
}),
111111
);

chalk-solve/src/infer/unify.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,10 +677,7 @@ impl<'t, I: Interner> Unifier<'t, I> {
677677
let lifetime = lifetime_var.to_lifetime(interner);
678678
let ty_var = self.table.new_variable(universe_index);
679679
let ty = ty_var.to_ty(interner);
680-
WhereClause::TypeOutlives(TypeOutlives {
681-
ty: ty,
682-
lifetime: lifetime,
683-
})
680+
WhereClause::TypeOutlives(TypeOutlives { ty, lifetime })
684681
}
685682
WhereClause::LifetimeOutlives(_) => {
686683
unreachable!("dyn Trait never contains LifetimeOutlive bounds")

0 commit comments

Comments
 (0)