about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-03-09 12:33:17 +0100
committerRalf Jung <post@ralfj.de>2024-03-09 12:33:17 +0100
commit862f918fa484c680b926463c0cad3236a2eeffed (patch)
treef5d030407ab4e36c1fb8322876960f804bbe7e2d
parent91644dd3898c42921f2aac3f76b987c8406cd7a1 (diff)
downloadrust-862f918fa484c680b926463c0cad3236a2eeffed.tar.gz
rust-862f918fa484c680b926463c0cad3236a2eeffed.zip
fix clippy lints
-rw-r--r--src/tools/miri/src/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/machine.rs b/src/tools/miri/src/machine.rs
index f2dc6c14058..f0e3c43a5c5 100644
--- a/src/tools/miri/src/machine.rs
+++ b/src/tools/miri/src/machine.rs
@@ -1333,7 +1333,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
         // If we have a borrow tracker, we also have it set up protection so that all reads *and
         // writes* during this call are insta-UB.
         let protected_place = if ecx.machine.borrow_tracker.is_some() {
-            ecx.protect_place(&place)?.into()
+            ecx.protect_place(place)?
         } else {
             // No borrow tracker.
             place.clone()