Ver Fonte

fixes float::Float and fmt

SparrowLii há 4 anos atrás
pai
commit
87811d7f4b
3 ficheiros alterados com 3 adições e 4 exclusões
  1. 1 1
      src/lib.rs
  2. 1 2
      src/ops/euclid.rs
  3. 1 1
      src/ops/mod.rs

+ 1 - 1
src/lib.rs

@@ -40,6 +40,7 @@ pub use int::PrimInt;
 pub use ops::checked::{
     CheckedAdd, CheckedDiv, CheckedMul, CheckedNeg, CheckedRem, CheckedShl, CheckedShr, CheckedSub,
 };
+pub use ops::euclid::{CheckedDivRemEuclid, DivRemEuclid};
 pub use ops::inv::Inv;
 pub use ops::mul_add::{MulAdd, MulAddAssign};
 pub use ops::saturating::{Saturating, SaturatingAdd, SaturatingMul, SaturatingSub};
@@ -48,7 +49,6 @@ pub use ops::wrapping::{
 };
 pub use pow::{checked_pow, pow, Pow};
 pub use sign::{abs, abs_sub, signum, Signed, Unsigned};
-pub use ops::euclid::{DivRemEuclid,CheckedDivRemEuclid};
 #[macro_use]
 mod macros;
 

+ 1 - 2
src/ops/euclid.rs

@@ -1,6 +1,5 @@
 use core::ops::{Div, Rem};
-use Float;
-
+use float::Float;
 pub trait DivRemEuclid: Sized + Div<Self, Output = Self> + Rem<Self, Output = Self> {
     /// Calculates Euclidean division, the matching method for `rem_euclid`.
     ///

+ 1 - 1
src/ops/mod.rs

@@ -1,6 +1,6 @@
 pub mod checked;
-pub mod inv;
 pub mod euclid;
+pub mod inv;
 pub mod mul_add;
 pub mod overflowing;
 pub mod saturating;