Fix builds and tests.

This commit is contained in:
Stephen Chung 2021-04-06 23:28:22 +08:00
parent f17a826f99
commit 0f2e7e3825
2 changed files with 2 additions and 0 deletions

View File

@ -1549,6 +1549,7 @@ impl<F: Float> FloatWrapper<F> {
} }
} }
#[cfg(not(feature = "no_float"))]
impl FloatWrapper<FLOAT> { impl FloatWrapper<FLOAT> {
#[inline(always)] #[inline(always)]
pub(crate) const fn const_new(value: FLOAT) -> Self { pub(crate) const fn const_new(value: FLOAT) -> Self {

View File

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