Fix no_std.

This commit is contained in:
Stephen Chung
2020-10-29 12:00:02 +08:00
parent 4e115d2bc2
commit a73584cd36
3 changed files with 3 additions and 2 deletions

View File

@@ -456,7 +456,7 @@ impl<'e, 'x, 'px, 'a, 's, 'm, 'pm, 't, 'pt> EvalContext<'e, 'x, 'px, 'a, 's, 'm,
#[cfg(feature = "internals")]
#[cfg(not(feature = "no_module"))]
#[inline(always)]
pub fn imports<'z: 'a>(&'z self) -> &'a Imports {
pub fn imports(&'a self) -> &'a Imports {
self.mods
}
/// Get an iterator over the namespaces containing definition of all script-defined functions.