Skip to content

Commit 6932bb8

Browse files
committed
unsilence and fix occurrences of unused_imports
1 parent 1ab222b commit 6932bb8

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

crates/wasmi/src/engine/translator/func2/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![expect(dead_code, unused_imports)]
1+
#![expect(dead_code)]
22

33
#[macro_use]
44
mod utils;
@@ -11,7 +11,7 @@ mod visit;
1111

1212
use self::{
1313
instrs::InstrEncoder,
14-
layout::{StackLayout, StackSpace},
14+
layout::StackLayout,
1515
stack::{
1616
BlockControlFrame,
1717
ControlFrame,
@@ -30,7 +30,7 @@ use self::{
3030
use crate::{
3131
core::{FuelCostsProvider, Typed, TypedVal, ValType},
3232
engine::{
33-
translator::{utils::FuelInfo, Instr, LabelRef, LabelRegistry, WasmTranslator},
33+
translator::{utils::FuelInfo, Instr, LabelRegistry, WasmTranslator},
3434
BlockType,
3535
CompiledFuncEntity,
3636
TranslationError,

crates/wasmi/src/engine/translator/func2/stack/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,14 @@ use self::{
2323
};
2424
use super::Reset;
2525
use crate::{
26-
core::{TypedVal, UntypedVal, ValType},
26+
core::{TypedVal, ValType},
2727
engine::{
2828
translator::{Instr, LabelRef},
2929
BlockType,
30-
TranslationError,
3130
},
32-
ir::Reg,
3331
Engine,
3432
Error,
3533
};
36-
use alloc::vec::Vec;
37-
use core::{array, mem, num::NonZero};
3834

3935
#[cfg(doc)]
4036
use crate::ir::Instruction;

crates/wasmi/src/engine/translator/func2/stack/operands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{
55
Error,
66
};
77
use alloc::vec::Vec;
8-
use core::{array, mem, num::NonZero, slice};
8+
use core::{num::NonZero, slice};
99

1010
/// A [`StackOperand`] or [`Operand`] index on the [`OperandStack`].
1111
#[derive(Debug, Copy, Clone, PartialEq, Eq)]

0 commit comments

Comments
 (0)