diff options
Diffstat (limited to 'crates/parser')
| -rw-r--r-- | crates/parser/src/conversion.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crates/parser/src/conversion.rs b/crates/parser/src/conversion.rs index 4f79a4a..1448d59 100644 --- a/crates/parser/src/conversion.rs +++ b/crates/parser/src/conversion.rs @@ -1,9 +1,6 @@ use alloc::{boxed::Box, format, string::ToString, vec::Vec}; use log::debug; -use tinywasm_types::{ - BlockArgs, ConstInstruction, ElementItem, Export, ExternalKind, FuncType, Global, GlobalType, Import, ImportKind, - Instruction, MemArg, MemoryArch, MemoryType, TableType, ValType, -}; +use tinywasm_types::*; use wasmparser::{FuncValidator, OperatorsReader, ValidatorResources}; use crate::{module::CodeSection, Result}; @@ -210,8 +207,8 @@ pub(crate) fn convert_valtype(valtype: &wasmparser::ValType) -> ValType { } } -pub(crate) fn convert_memarg(memarg: wasmparser::MemArg) -> MemArg { - MemArg { offset: memarg.offset, align: memarg.align, align_max: memarg.max_align, mem_addr: memarg.memory } +pub(crate) fn convert_memarg(memarg: wasmparser::MemArg) -> MemoryArg { + MemoryArg { offset: memarg.offset, align: memarg.align, align_max: memarg.max_align, mem_addr: memarg.memory } } pub(crate) fn process_const_operators(ops: OperatorsReader) -> Result<ConstInstruction> { |
