diff options
| author | Caio <c410.f3r@gmail.com> | 2023-06-17 17:16:01 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2023-06-17 17:16:01 -0300 |
| commit | dbe4057237ffa1594b41aa998d0958efe95780bc (patch) | |
| tree | 13dd27a642d62b458315b9fc23899feec2c6b5ef | |
| parent | 0e1caa765e89593fc81015e2e9bfe347339ba0b7 (diff) | |
| download | rust-dbe4057237ffa1594b41aa998d0958efe95780bc.tar.gz rust-dbe4057237ffa1594b41aa998d0958efe95780bc.zip | |
Dogfood
| -rw-r--r-- | clippy_utils/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/consts.rs b/clippy_utils/src/consts.rs index ff01c2ef7be..72582ba7e78 100644 --- a/clippy_utils/src/consts.rs +++ b/clippy_utils/src/consts.rs @@ -396,7 +396,7 @@ impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> { }, 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() |
