Avoid pulling in std for no-std.

This commit is contained in:
Stephen Chung
2020-07-20 20:23:35 +08:00
parent 700060b6e7
commit a5fa8322e9
4 changed files with 8 additions and 0 deletions

View File

@@ -7,6 +7,9 @@ use crate::token::Position;
#[cfg(not(feature = "no_float"))]
use crate::parser::FLOAT;
#[cfg(not(feature = "no_float"))]
use num_traits::*;
use num_traits::{
identities::Zero, CheckedAdd, CheckedDiv, CheckedMul, CheckedNeg, CheckedRem, CheckedShl,
CheckedShr, CheckedSub,