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 | c29dc120e5e43a4757d8f7f20db35c61767fe987 (patch) | |
| tree | d6251450decd55b2ea7e4a40ee320f9bf6c5ee7d | |
| parent | 0a97eee8df1f4a3182cd92786258ee5cf2baa43f (diff) | |
| download | rust-c29dc120e5e43a4757d8f7f20db35c61767fe987.tar.gz rust-c29dc120e5e43a4757d8f7f20db35c61767fe987.zip | |
fix clippy error
| -rw-r--r-- | src/tools/clippy/clippy_utils/src/qualify_min_const_fn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_utils/src/qualify_min_const_fn.rs b/src/tools/clippy/clippy_utils/src/qualify_min_const_fn.rs index 1391f7505e2..dac4d93499d 100644 --- a/src/tools/clippy/clippy_utils/src/qualify_min_const_fn.rs +++ b/src/tools/clippy/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), |
