From aa8cc8f719656761a791d56ad991bc335460595f Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 18 Dec 2021 17:59:32 +0800 Subject: [PATCH] Fix builds. --- tests/custom_syntax.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/custom_syntax.rs b/tests/custom_syntax.rs index d2bb257a..1d21c315 100644 --- a/tests/custom_syntax.rs +++ b/tests/custom_syntax.rs @@ -268,6 +268,7 @@ fn test_custom_syntax_raw2() -> Result<(), Box> { ); assert_eq!(engine.eval::("let x = 41; x + #1")?, 42); + #[cfg(not(feature = "no_object"))] assert_eq!(engine.eval::("#-42.abs()")?, 42); assert_eq!(engine.eval::("#42/2")?, 21); assert_eq!(engine.eval::("#-1")?, -1);