Fix no_std builds by pulling in num-traits.

This commit is contained in:
Stephen Chung
2020-08-23 18:28:55 +08:00
parent 3902e49a7d
commit 1dacf21a84
2 changed files with 10 additions and 1 deletions

View File

@@ -52,6 +52,10 @@ use crate::stdlib::{
#[cfg(not(feature = "no_function"))]
use crate::stdlib::{collections::HashSet, string::String};
#[cfg(feature = "no_std")]
#[cfg(not(feature = "no_float"))]
use num_traits::float::Float;
/// Extract the property name from a getter function name.
#[inline(always)]
fn extract_prop_from_getter(_fn_name: &str) -> Option<&str> {