Remove Float trait.
This commit is contained in:
@@ -1480,9 +1480,6 @@ impl fmt::Debug for FloatWrapper {
|
||||
impl fmt::Display for FloatWrapper {
|
||||
#[inline(always)]
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
#[cfg(feature = "no_std")]
|
||||
use num_traits::Float;
|
||||
|
||||
let abs = self.0.abs();
|
||||
if abs > 10000000000000.0 || abs < 0.0000000000001 {
|
||||
write!(f, "{:e}", self.0)
|
||||
|
Reference in New Issue
Block a user