Fix feature builds.

This commit is contained in:
Stephen Chung 2021-03-15 23:03:26 +08:00
parent a1549bb377
commit 082ecaa739
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ use crate::stdlib::{
any::{type_name, TypeId}, any::{type_name, TypeId},
boxed::Box, boxed::Box,
format, format,
string::String, string::{String, ToString},
vec::Vec, vec::Vec,
}; };
use crate::{ use crate::{

View File

@ -51,6 +51,7 @@ fn test_functions() -> Result<(), Box<EvalAltResult>> {
Ok(()) Ok(())
} }
#[cfg(not(feature = "no_module"))]
#[test] #[test]
fn test_functions_context() -> Result<(), Box<EvalAltResult>> { fn test_functions_context() -> Result<(), Box<EvalAltResult>> {
let mut engine = Engine::new(); let mut engine = Engine::new();