Skip to content

Commit d0ca098

Browse files
committed
1 parent 42f96b2 commit d0ca098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/utils/hir_utils.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
237237
&& over(&left.bindings, &right.bindings, |l, r| self.eq_type_binding(l, r))
238238
} else if left.parenthesized && right.parenthesized {
239239
over(left.inputs(), right.inputs(), |l, r| self.eq_ty(l, r))
240-
&& both(&Some(&left.bindings[0].ty), &Some(&right.bindings[0].ty), |l, r| {
240+
&& both(&Some(&left.bindings[0].ty()), &Some(&right.bindings[0].ty()), |l, r| {
241241
self.eq_ty(l, r)
242242
})
243243
} else {
@@ -299,7 +299,7 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
299299
}
300300

301301
fn eq_type_binding(&mut self, left: &TypeBinding, right: &TypeBinding) -> bool {
302-
left.ident.name == right.ident.name && self.eq_ty(&left.ty, &right.ty)
302+
left.ident.name == right.ident.name && self.eq_ty(&left.ty(), &right.ty())
303303
}
304304
}
305305

0 commit comments

Comments
 (0)