Skip to content

Commit ff51789

Browse files
committed
cleaned up import
1 parent 701f7f5 commit ff51789

File tree

1 file changed

+2
-3
lines changed
  • src/module/functions/local_function

1 file changed

+2
-3
lines changed

src/module/functions/local_function/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use crate::ir::*;
1010
use crate::map::{IdHashMap, IdHashSet};
1111
use crate::parse::IndicesToIds;
1212
use crate::{Data, DataId, FunctionBuilder, FunctionId, MemoryId, Module, Result, TypeId, ValType};
13-
use id_arena::Id;
1413
use std::collections::BTreeMap;
1514
use wasmparser::{FuncValidator, Operator, ValidatorResources};
1615

@@ -106,12 +105,12 @@ impl LocalFunction {
106105
}
107106

108107
/// Iterate over all the blocks in the function
109-
pub fn blocks(&self) -> impl Iterator<Item = (Id<InstrSeq>, &InstrSeq)> {
108+
pub fn blocks(&self) -> impl Iterator<Item = (InstrSeqId, &InstrSeq)> {
110109
self.builder.arena.iter()
111110
}
112111

113112
/// Mutably iterate over all the blocks in the function
114-
pub fn blocks_mut(&mut self) -> impl Iterator<Item = (Id<InstrSeq>, &mut InstrSeq)> {
113+
pub fn blocks_mut(&mut self) -> impl Iterator<Item = (InstrSeqId, &mut InstrSeq)> {
115114
self.builder.arena.iter_mut()
116115
}
117116

0 commit comments

Comments
 (0)