Skip to content

Commit cf71caa

Browse files
committed
Drop redundant &
1 parent cb3aa74 commit cf71caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/eta_reduction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ fn match_types(lhs: Ty<'_>, rhs: Ty<'_>) -> bool {
166166
| (ty::Str, ty::Str) => true,
167167
(ty::Ref(_, t1, _), ty::Ref(_, t2, _))
168168
| (ty::Array(t1, _), ty::Array(t2, _))
169-
| (ty::Slice(t1), ty::Slice(t2)) => match_types(&t1, &t2),
169+
| (ty::Slice(t1), ty::Slice(t2)) => match_types(t1, t2),
170170
(ty::Adt(def1, _), ty::Adt(def2, _)) => def1 == def2,
171171
(_, _) => false,
172172
}

0 commit comments

Comments
 (0)