From eabf9db2634ac611e829feafea12634f820f8bf2 Mon Sep 17 00:00:00 2001 From: J Henry Waugh Date: Fri, 14 Aug 2020 19:30:27 -0500 Subject: [PATCH] Add missing num_traits import --- src/packages/math_basic.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/packages/math_basic.rs b/src/packages/math_basic.rs index e8b267fb..f31e64dd 100644 --- a/src/packages/math_basic.rs +++ b/src/packages/math_basic.rs @@ -211,6 +211,8 @@ mod float_functions { mod float_funcs { use crate::parser::FLOAT; use crate::plugin::*; + #[cfg(feature = "no_std")] + use num_traits::float::Float; #[export_fn] pub fn floor(x: FLOAT) -> FLOAT {