Remove Float trait.

This commit is contained in:
Stephen Chung
2021-03-29 11:36:15 +08:00
parent e5249cc1ae
commit 60f8a7f91c
6 changed files with 1 additions and 22 deletions

View File

@@ -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)