From cdf44f4852ed6f52deb9823331f26e0bbaf07732 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Mon, 11 Dec 2023 00:23:21 +0100 Subject: chore: don't require nightly for no_std Signed-off-by: Henry Gressmann --- crates/parser/src/conversion.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/parser/src/conversion.rs') diff --git a/crates/parser/src/conversion.rs b/crates/parser/src/conversion.rs index f15c9ae..19b7586 100644 --- a/crates/parser/src/conversion.rs +++ b/crates/parser/src/conversion.rs @@ -113,13 +113,12 @@ pub(crate) fn convert_memarg(memarg: wasmparser::MemArg) -> MemArg { } pub fn process_operators<'a>( - offset: usize, + mut offset: usize, ops: impl Iterator, wasmparser::BinaryReaderError>>, mut validator: FuncValidator, ) -> Result> { let mut instructions = Vec::new(); - let mut offset = offset.into(); for op in ops { let op = op?; validator.op(offset, &op)?; -- cgit v1.3.1