Skip to content

Commit

Permalink
fix build after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Nov 21, 2023
1 parent 62adf34 commit af32c71
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions codegen/masm/src/masm/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,3 @@ impl midenc_session::Emit for Program {
writer.write_fmt(format_args!("{}", self))
}
}

enum ModulesIter<'a> {
Open(intrusive_collections::rbtree::Iter<'a, ModuleTreeAdapter>),
Frozen(intrusive_collections::rbtree::Iter<'a, FrozenModuleTreeAdapter>),
}
impl<'a> Iterator for ModulesIter<'a> {
type Item = &'a Module;

fn next(&mut self) -> Option<Self::Item> {
match self {
Self::Open(ref mut iter) => iter.next(),
Self::Frozen(ref mut iter) => iter.next(),
}
}
}

0 comments on commit af32c71

Please sign in to comment.