Skip to content

Commit

Permalink
fix: clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nerodesu017 committed Jun 25, 2024
1 parent 89b9503 commit 4238e24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/reader/types/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl WasmReadable for Import {

#[derive(Debug)]
pub enum ImportDesc {
#[allow(dead_code)]
Func(TypeIdx),
#[allow(dead_code)]
Table(()),
Expand Down
2 changes: 1 addition & 1 deletion src/core/reader/types/memarg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct MemArg {
impl WasmReadable for MemArg {
fn read(wasm: &mut WasmReader) -> crate::Result<Self> {
let offset = wasm.read_var_u32()?;
#[allow(warnings)]
#[allow(dead_code)]
let align = wasm.read_var_u32()?;
Ok(Self { offset, align })
}
Expand Down

0 comments on commit 4238e24

Please sign in to comment.