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();