From 52eda3e7e9ecc62776888aa5d3aeef95660dff8d Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Tue, 23 Jan 2024 18:23:31 +0100 Subject: feat: uninitialized elems Signed-off-by: Henry Gressmann --- crates/parser/src/conversion.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'crates/parser/src/conversion.rs') 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 { -- cgit v1.3.1