diff --git a/src/ast.rs b/src/ast.rs index 3d67d832..c9d0d96c 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -21,6 +21,7 @@ use crate::engine::{make_getter, make_setter, Map}; use crate::stdlib::{ any::TypeId, borrow::Cow, + boxed::Box, fmt, hash::{Hash, Hasher}, num::NonZeroUsize, diff --git a/src/engine.rs b/src/engine.rs index 59bd12bc..fc82de5c 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -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. diff --git a/src/module/mod.rs b/src/module/mod.rs index 863a8643..907db6f0 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -10,7 +10,7 @@ use crate::utils::{ImmutableString, StraightHasherBuilder}; use crate::{calc_native_fn_hash, calc_script_fn_hash, StaticVec}; #[cfg(not(feature = "no_function"))] -use crate::{fn_native::Shared, ast::ScriptFnDef}; +use crate::{ast::ScriptFnDef, fn_native::Shared}; #[cfg(not(feature = "no_module"))] use crate::{