|
1 | | -use {Category, ExpInt, IEK_INF, IEK_NAN, IEK_ZERO}; |
2 | | -use {Float, FloatConvert, ParseError, Round, Status, StatusAnd}; |
| 1 | +use crate::{Category, ExpInt, IEK_INF, IEK_NAN, IEK_ZERO}; |
| 2 | +use crate::{Float, FloatConvert, ParseError, Round, Status, StatusAnd}; |
3 | 3 |
|
4 | 4 | use smallvec::{SmallVec, smallvec}; |
5 | 5 | use std::cmp::{self, Ordering}; |
@@ -325,7 +325,7 @@ impl<S> Neg for IeeeFloat<S> { |
325 | 325 | /// 1.01E-2 4 2 0.0101 |
326 | 326 | /// 1.01E-2 4 1 1.01E-2 |
327 | 327 | impl<S: Semantics> fmt::Display for IeeeFloat<S> { |
328 | | - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 328 | + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
329 | 329 | let width = f.width().unwrap_or(3); |
330 | 330 | let alternate = f.alternate(); |
331 | 331 |
|
@@ -614,7 +614,7 @@ impl<S: Semantics> fmt::Display for IeeeFloat<S> { |
614 | 614 | } |
615 | 615 |
|
616 | 616 | impl<S: Semantics> fmt::Debug for IeeeFloat<S> { |
617 | | - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 617 | + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
618 | 618 | write!(f, "{}({:?} | {}{:?} * 2^{})", |
619 | 619 | self, self.category, |
620 | 620 | if self.sign { "-" } else { "+" }, |
|
0 commit comments