diff options
author | Jimmy Miller <jimmy.miller@shopify.com> | 2022-09-30 10:14:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 11:14:55 -0400 |
commit | 31461c7e0eab4963ccc8649ea8ebf27979132c0c (patch) | |
tree | 69a0378ba20e47c085928ede356431a65d8e60c3 /yjit/src/asm/arm64/arg/shifted_imm.rs | |
parent | ad651925e365ca18645f05b5e9b2eca9cd5721bc (diff) | |
download | ruby-31461c7e0eab4963ccc8649ea8ebf27979132c0c.tar.gz |
A bunch of clippy auto fixes for yjit (#6476)
Diffstat (limited to 'yjit/src/asm/arm64/arg/shifted_imm.rs')
-rw-r--r-- | yjit/src/asm/arm64/arg/shifted_imm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/asm/arm64/arg/shifted_imm.rs b/yjit/src/asm/arm64/arg/shifted_imm.rs index 5d1eeaf26d..0dd7af25b5 100644 --- a/yjit/src/asm/arm64/arg/shifted_imm.rs +++ b/yjit/src/asm/arm64/arg/shifted_imm.rs @@ -18,7 +18,7 @@ impl TryFrom<u64> for ShiftedImmediate { /// Attempt to convert a u64 into a BitmaskImm. fn try_from(value: u64) -> Result<Self, Self::Error> { - let mut current = value; + let current = value; if current < 2_u64.pow(12) { return Ok(ShiftedImmediate { shift: Shift::LSL0, value: current as u16 }); } |