From 5e275d4593aa1aa44d3e12752b49194151a521af Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 29 Oct 2021 18:14:07 +0800 Subject: [PATCH] Fix no_function build. --- tests/functions.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/functions.rs b/tests/functions.rs index 24611d0c..6a37c87d 100644 --- a/tests/functions.rs +++ b/tests/functions.rs @@ -44,6 +44,7 @@ fn test_functions_namespaces() -> Result<(), Box> { let mut engine = Engine::new(); #[cfg(not(feature = "no_function"))] + #[cfg(not(feature = "no_module"))] { assert_eq!( engine.eval::( @@ -81,6 +82,7 @@ fn test_functions_namespaces() -> Result<(), Box> { assert_eq!(engine.eval::("test()")?, 42); #[cfg(not(feature = "no_function"))] + #[cfg(not(feature = "no_module"))] { assert_eq!(engine.eval::("fn test() { 123 } test()")?, 123);