fix clippy error

This commit is contained in:
Roxane 2021-03-30 00:30:20 -04:00
parent b438e30fa6
commit 2ca5368628

View file

@ -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),