diff options
| author | Roxane <roxane.fruytier@hotmail.com> | 2021-03-30 00:30:20 -0400 |
|---|---|---|
| committer | Roxane <roxane.fruytier@hotmail.com> | 2021-04-02 19:11:51 -0400 |
| commit | 2ca5368628e72ef1e53bae29315e2ad368558f0d (patch) | |
| tree | c26bf4dcab2c5429a28f24b8fbbb2f83f3c1c387 | |
| parent | b438e30fa65a8c59cd62604e0b7f8464be141f12 (diff) | |
| download | rust-2ca5368628e72ef1e53bae29315e2ad368558f0d.tar.gz rust-2ca5368628e72ef1e53bae29315e2ad368558f0d.zip | |
fix clippy error
| -rw-r--r-- | clippy_utils/src/qualify_min_const_fn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/qualify_min_const_fn.rs b/clippy_utils/src/qualify_min_const_fn.rs index 1391f7505e2..dac4d93499d 100644 --- a/clippy_utils/src/qualify_min_const_fn.rs +++ b/clippy_utils/src/qualify_min_const_fn.rs @@ -212,7 +212,7 @@ fn check_statement(tcx: TyCtxt<'tcx>, body: &Body<'tcx>, def_id: DefId, statemen check_rvalue(tcx, body, def_id, rval, span) } - StatementKind::FakeRead(_, place) | + StatementKind::FakeRead(box (_, place)) => check_place(tcx, *place, span, body), // just an assignment StatementKind::SetDiscriminant { place, .. } => check_place(tcx, **place, span, body), |
