From 0f2e7e38256cd055f6cc5bb4bac5fd725fc2b038 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 6 Apr 2021 23:28:22 +0800 Subject: [PATCH] Fix builds and tests. --- src/ast.rs | 1 + tests/optimizer.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ast.rs b/src/ast.rs index c964b214..9d7902d8 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -1549,6 +1549,7 @@ impl FloatWrapper { } } +#[cfg(not(feature = "no_float"))] impl FloatWrapper { #[inline(always)] pub(crate) const fn const_new(value: FLOAT) -> Self { diff --git a/tests/optimizer.rs b/tests/optimizer.rs index 69c884fd..cd3baf58 100644 --- a/tests/optimizer.rs +++ b/tests/optimizer.rs @@ -48,6 +48,7 @@ fn test_optimizer_run() -> Result<(), Box> { Ok(()) } +#[cfg(not(feature = "no_module"))] #[test] fn test_optimizer_parse() -> Result<(), Box> { let mut engine = Engine::new();