Skip to content

Commit

Permalink
change submodules to use im::HashMap instead of im::OrdMap
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBatty committed May 9, 2024
1 parent f8e8d35 commit b513142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sway-core/src/semantic_analysis/namespace/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct Module {
/// some library dependency that we include as a submodule.
///
/// Note that we *require* this map to be ordered to produce deterministic codegen results.
pub(crate) submodules: im::OrdMap<ModuleName, Module>,
pub(crate) submodules: im::HashMap<ModuleName, Module>,
/// Keeps all lexical scopes associated with this module.
pub lexical_scopes: Vec<LexicalScope>,
/// Current lexical scope id in the lexical scope hierarchy stack.
Expand Down Expand Up @@ -86,7 +86,7 @@ impl Module {
}

/// Immutable access to this module's submodules.
pub fn submodules(&self) -> &im::OrdMap<ModuleName, Module> {
pub fn submodules(&self) -> &im::HashMap<ModuleName, Module> {
&self.submodules
}

Expand Down

0 comments on commit b513142

Please sign in to comment.