Skip to content

Commit d967b26

Browse files
committed
Fix a clippy::needless_borrow
1 parent a357723 commit d967b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
5757
let ptr = left.to_scalar().to_pointer(this)?;
5858
// We do the actual operation with usize-typed scalars.
5959
let left = ImmTy::from_uint(ptr.addr().bytes(), this.machine.layouts.usize);
60-
let result = this.binary_op(bin_op, &left, &right)?;
60+
let result = this.binary_op(bin_op, &left, right)?;
6161
// Construct a new pointer with the provenance of `ptr` (the LHS).
6262
let result_ptr = Pointer::new(
6363
ptr.provenance,

0 commit comments

Comments
 (0)