Skip to content

Commit 862f918

Browse files
committed
fix clippy lints
1 parent 91644dd commit 862f918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/machine.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
13331333
// If we have a borrow tracker, we also have it set up protection so that all reads *and
13341334
// writes* during this call are insta-UB.
13351335
let protected_place = if ecx.machine.borrow_tracker.is_some() {
1336-
ecx.protect_place(&place)?.into()
1336+
ecx.protect_place(place)?
13371337
} else {
13381338
// No borrow tracker.
13391339
place.clone()

0 commit comments

Comments
 (0)