From 082ecaa739d918a2a84ce8835a862006cf0e8e00 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 15 Mar 2021 23:03:26 +0800 Subject: [PATCH] Fix feature builds. --- src/engine_api.rs | 2 +- tests/functions.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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();