@@ -29,26 +29,26 @@ use core::num::Wrapping;
2929use core:: ops:: { Add , Div , Mul , Rem , Sub } ;
3030use core:: ops:: { AddAssign , DivAssign , MulAssign , RemAssign , SubAssign } ;
3131
32- pub use bounds:: Bounded ;
32+ pub use crate :: bounds:: Bounded ;
3333#[ cfg( any( feature = "std" , feature = "libm" ) ) ]
34- pub use float:: Float ;
35- pub use float:: FloatConst ;
34+ pub use crate :: float:: Float ;
35+ pub use crate :: float:: FloatConst ;
3636// pub use real::{FloatCore, Real}; // NOTE: Don't do this, it breaks `use num_traits::*;`.
37- pub use cast:: { cast, AsPrimitive , FromPrimitive , NumCast , ToPrimitive } ;
38- pub use identities:: { one, zero, One , Zero } ;
39- pub use int:: PrimInt ;
40- pub use ops:: checked:: {
37+ pub use crate :: cast:: { cast, AsPrimitive , FromPrimitive , NumCast , ToPrimitive } ;
38+ pub use crate :: identities:: { one, zero, One , Zero } ;
39+ pub use crate :: int:: PrimInt ;
40+ pub use crate :: ops:: checked:: {
4141 CheckedAdd , CheckedDiv , CheckedMul , CheckedNeg , CheckedRem , CheckedShl , CheckedShr , CheckedSub ,
4242} ;
43- pub use ops:: euclid:: { CheckedEuclid , Euclid } ;
44- pub use ops:: inv:: Inv ;
45- pub use ops:: mul_add:: { MulAdd , MulAddAssign } ;
46- pub use ops:: saturating:: { Saturating , SaturatingAdd , SaturatingMul , SaturatingSub } ;
47- pub use ops:: wrapping:: {
43+ pub use crate :: ops:: euclid:: { CheckedEuclid , Euclid } ;
44+ pub use crate :: ops:: inv:: Inv ;
45+ pub use crate :: ops:: mul_add:: { MulAdd , MulAddAssign } ;
46+ pub use crate :: ops:: saturating:: { Saturating , SaturatingAdd , SaturatingMul , SaturatingSub } ;
47+ pub use crate :: ops:: wrapping:: {
4848 WrappingAdd , WrappingMul , WrappingNeg , WrappingShl , WrappingShr , WrappingSub ,
4949} ;
50- pub use pow:: { checked_pow, pow, Pow } ;
51- pub use sign:: { abs, abs_sub, signum, Signed , Unsigned } ;
50+ pub use crate :: pow:: { checked_pow, pow, Pow } ;
51+ pub use crate :: sign:: { abs, abs_sub, signum, Signed , Unsigned } ;
5252
5353#[ macro_use]
5454mod macros;
@@ -199,7 +199,7 @@ pub struct ParseFloatError {
199199}
200200
201201impl fmt:: Display for ParseFloatError {
202- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
202+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
203203 let description = match self . kind {
204204 FloatErrorKind :: Empty => "cannot parse float from empty string" ,
205205 FloatErrorKind :: Invalid => "invalid float literal" ,
0 commit comments