Skip to content

Commit 94cabd5

Browse files
authored
Apply misc clippy suggestions (#1505)
apply misc clippy suggestions
1 parent 6e4e469 commit 94cabd5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/wasmi/src/engine/executor/instrs/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{
55
ir::{Const16, Instruction, Reg},
66
};
77

8-
impl<'engine> Executor<'engine> {
8+
impl Executor<'_> {
99
/// Fetches two [`Reg`]s.
1010
fn fetch_register_2(&self) -> (Reg, Reg) {
1111
let mut addr: InstructionPtr = self.ip;

crates/wasmi/src/engine/translator/instr_encoder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,7 @@ impl InstrEncoder {
820820
| Instruction::CopySpanNonOverlapping { .. }
821821
| Instruction::CopyManyNonOverlapping { .. }
822822
),
823-
"a preserve instruction is always a register copy instruction but found: {:?}",
824-
preserved,
823+
"a preserve instruction is always a register copy instruction but found: {preserved:?}",
825824
);
826825
}
827826
if self.notified_preservation.is_none() {

0 commit comments

Comments
 (0)