Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lenawanel committed Apr 26, 2024
1 parent 817f4fb commit 8d1929c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/emu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ impl Emu {
}
Bitness::Sixteen => {
let val: i16 = self.get_val(instruction, 1)?;
self.set_val(instruction, 0, val as i16)?;
self.set_val(instruction, 0, val)?;
}
_ => unreachable!(),
},
Expand All @@ -1292,7 +1292,7 @@ impl Emu {
}
Bitness::ThirtyTwo => {
let val: i32 = self.get_val(instruction, 1)?;
self.set_val(instruction, 0, val as i32)?;
self.set_val(instruction, 0, val)?;
}
_ => unreachable!(),
},
Expand Down Expand Up @@ -1323,7 +1323,7 @@ impl Emu {
}
Bitness::Sixteen => {
let val: u16 = self.get_val(instruction, 1)?;
self.set_val(instruction, 0, val as u16)?;
self.set_val(instruction, 0, val)?;
}
_ => unreachable!(),
},
Expand All @@ -1338,7 +1338,7 @@ impl Emu {
}
Bitness::ThirtyTwo => {
let val: u32 = self.get_val(instruction, 1)?;
self.set_val(instruction, 0, val as u32)?;
self.set_val(instruction, 0, val)?;
}
_ => unreachable!(),
},
Expand Down Expand Up @@ -1390,7 +1390,7 @@ impl Emu {
self.set_val(
instruction,
0,
0// self.get_reg::<u64, 8>(Register::RSP)
0, // self.get_reg::<u64, 8>(Register::RSP)
)?;
}
/*
Expand Down

0 comments on commit 8d1929c

Please sign in to comment.