diff options
| author | Ralf Jung <post@ralfj.de> | 2024-03-09 12:33:17 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-03-09 12:33:17 +0100 |
| commit | 862f918fa484c680b926463c0cad3236a2eeffed (patch) | |
| tree | f5d030407ab4e36c1fb8322876960f804bbe7e2d | |
| parent | 91644dd3898c42921f2aac3f76b987c8406cd7a1 (diff) | |
| download | rust-862f918fa484c680b926463c0cad3236a2eeffed.tar.gz rust-862f918fa484c680b926463c0cad3236a2eeffed.zip | |
fix clippy lints
| -rw-r--r-- | src/tools/miri/src/machine.rs | 2 |
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() |
