aboutsummaryrefslogtreecommitdiffstats
path: root/yjit/src/asm/arm64/arg/shifted_imm.rs
diff options
context:
space:
mode:
authorJimmy Miller <jimmy.miller@shopify.com>2022-09-30 10:14:55 -0500
committerGitHub <noreply@github.com>2022-09-30 11:14:55 -0400
commit31461c7e0eab4963ccc8649ea8ebf27979132c0c (patch)
tree69a0378ba20e47c085928ede356431a65d8e60c3 /yjit/src/asm/arm64/arg/shifted_imm.rs
parentad651925e365ca18645f05b5e9b2eca9cd5721bc (diff)
downloadruby-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.rs2
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 });
}