about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2025-08-09 12:45:07 -0400
committerBen Kimock <kimockb@gmail.com>2025-08-09 12:45:07 -0400
commite4a5024805d27f885ac667ef15770cc53d32fadc (patch)
treeeacab94ae5aa822e25fb3c500cbbfe5a8e7718a4 /src
parentd70a00fb64b6269eda17f1f0a5ea7b30afc91e9f (diff)
downloadrust-e4a5024805d27f885ac667ef15770cc53d32fadc.tar.gz
rust-e4a5024805d27f885ac667ef15770cc53d32fadc.zip
Fix a clippy::needless_borrow
Diffstat (limited to 'src')
-rw-r--r--src/tools/miri/src/operator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/operator.rs b/src/tools/miri/src/operator.rs
index 3c3f2c28535..116f45f18dd 100644
--- a/src/tools/miri/src/operator.rs
+++ b/src/tools/miri/src/operator.rs
@@ -57,7 +57,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
                 let ptr = left.to_scalar().to_pointer(this)?;
                 // We do the actual operation with usize-typed scalars.
                 let left = ImmTy::from_uint(ptr.addr().bytes(), this.machine.layouts.usize);
-                let result = this.binary_op(bin_op, &left, &right)?;
+                let result = this.binary_op(bin_op, &left, right)?;
                 // Construct a new pointer with the provenance of `ptr` (the LHS).
                 let result_ptr = Pointer::new(
                     ptr.provenance,