diff --git a/src/engine_api.rs b/src/engine_api.rs index 7654ef74..8f421688 100644 --- a/src/engine_api.rs +++ b/src/engine_api.rs @@ -9,7 +9,7 @@ use crate::stdlib::{ any::{type_name, TypeId}, boxed::Box, format, - string::String, + string::{String, ToString}, vec::Vec, }; use crate::{ diff --git a/tests/functions.rs b/tests/functions.rs index 73b4fc60..d5b8f190 100644 --- a/tests/functions.rs +++ b/tests/functions.rs @@ -51,6 +51,7 @@ fn test_functions() -> Result<(), Box> { Ok(()) } +#[cfg(not(feature = "no_module"))] #[test] fn test_functions_context() -> Result<(), Box> { let mut engine = Engine::new();