diff --git a/clippy_lints/src/utils/hir_utils.rs b/clippy_lints/src/utils/hir_utils.rs index 702738b6696..7e4f46d92ec 100644 --- a/clippy_lints/src/utils/hir_utils.rs +++ b/clippy_lints/src/utils/hir_utils.rs @@ -237,7 +237,7 @@ fn eq_path_parameters(&mut self, left: &GenericArgs, right: &GenericArgs) -> boo && over(&left.bindings, &right.bindings, |l, r| self.eq_type_binding(l, r)) } else if left.parenthesized && right.parenthesized { over(left.inputs(), right.inputs(), |l, r| self.eq_ty(l, r)) - && both(&Some(&left.bindings[0].ty), &Some(&right.bindings[0].ty), |l, r| { + && both(&Some(&left.bindings[0].ty()), &Some(&right.bindings[0].ty()), |l, r| { self.eq_ty(l, r) }) } else { @@ -299,7 +299,7 @@ pub fn eq_ty_kind(&mut self, left: &TyKind, right: &TyKind) -> bool { } fn eq_type_binding(&mut self, left: &TypeBinding, right: &TypeBinding) -> bool { - left.ident.name == right.ident.name && self.eq_ty(&left.ty, &right.ty) + left.ident.name == right.ident.name && self.eq_ty(&left.ty(), &right.ty()) } }