diff --git a/clippy_utils/src/consts.rs b/clippy_utils/src/consts.rs index ff01c2ef7bed..72582ba7e785 100644 --- a/clippy_utils/src/consts.rs +++ b/clippy_utils/src/consts.rs @@ -396,7 +396,7 @@ pub fn expr(&mut self, e: &Expr<'_>) -> Option> { }, ExprKind::Index(arr, index) => self.index(arr, index), ExprKind::AddrOf(_, _, inner) => self.expr(inner).map(|r| Constant::Ref(Box::new(r))), - ExprKind::Field(ref local_expr, ref field) => { + ExprKind::Field(local_expr, ref field) => { let result = self.expr(local_expr); if let Some(Constant::Adt(constant)) = &self.expr(local_expr) && let ty::Adt(adt_def, _) = constant.ty().kind()