diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2023-12-11 00:23:21 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2023-12-11 00:23:21 +0100 |
| commit | cdf44f4852ed6f52deb9823331f26e0bbaf07732 (patch) | |
| tree | 0da3182bbb48cf0c6637c18d7f46c6aa2f08ff38 /crates/parser | |
| parent | abdfb744723f5931add7c248ffc242a11d52b976 (diff) | |
chore: don't require nightly for no_std
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser')
| -rw-r--r-- | crates/parser/src/conversion.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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<Item = Result<wasmparser::Operator<'a>, wasmparser::BinaryReaderError>>, mut validator: FuncValidator<ValidatorResources>, ) -> Result<Box<[Instruction]>> { let mut instructions = Vec::new(); - let mut offset = offset.into(); for op in ops { let op = op?; validator.op(offset, &op)?; |
