diff --git a/src/module/functions/local_function/mod.rs b/src/module/functions/local_function/mod.rs index f4abbe0a..66fceac8 100644 --- a/src/module/functions/local_function/mod.rs +++ b/src/module/functions/local_function/mod.rs @@ -10,7 +10,6 @@ use crate::ir::*; use crate::map::{IdHashMap, IdHashSet}; use crate::parse::IndicesToIds; use crate::{Data, DataId, FunctionBuilder, FunctionId, MemoryId, Module, Result, TypeId, ValType}; -use id_arena::Id; use std::collections::BTreeMap; use wasmparser::{FuncValidator, Operator, ValidatorResources}; @@ -106,12 +105,12 @@ impl LocalFunction { } /// Iterate over all the blocks in the function - pub fn blocks(&self) -> impl Iterator, &InstrSeq)> { + pub fn blocks(&self) -> impl Iterator { self.builder.arena.iter() } /// Mutably iterate over all the blocks in the function - pub fn blocks_mut(&mut self) -> impl Iterator, &mut InstrSeq)> { + pub fn blocks_mut(&mut self) -> impl Iterator { self.builder.arena.iter_mut() }