Streamline global state.

This commit is contained in:
Stephen Chung
2022-10-14 12:23:04 +08:00
parent b65b7b05a5
commit 3d0626c76f
2 changed files with 33 additions and 41 deletions

View File

@@ -235,7 +235,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.