Compact data structures.

This commit is contained in:
Stephen Chung
2022-10-27 15:52:24 +08:00
parent 3c2e031883
commit 4708fde8bd
3 changed files with 50 additions and 37 deletions

View File

@@ -229,7 +229,7 @@ impl<'a> NativeCallContext<'a> {
#[inline]
pub(crate) fn iter_imports_raw(
&self,
) -> impl Iterator<Item = &(crate::ImmutableString, Shared<Module>)> {
) -> impl Iterator<Item = (&crate::ImmutableString, &Shared<Module>)> {
self.global.iter().flat_map(|&g| g.iter_imports_raw())
}
/// _(internals)_ The current [`GlobalRuntimeState`], if any.