Skip to content

Commit 87811d7

Browse files
SparrowLiicuviper
authored andcommitted
fixes float::Float and fmt
1 parent 1ea0c35 commit 87811d7

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ pub use int::PrimInt;
4040
pub use ops::checked::{
4141
CheckedAdd, CheckedDiv, CheckedMul, CheckedNeg, CheckedRem, CheckedShl, CheckedShr, CheckedSub,
4242
};
43+
pub use ops::euclid::{CheckedDivRemEuclid, DivRemEuclid};
4344
pub use ops::inv::Inv;
4445
pub use ops::mul_add::{MulAdd, MulAddAssign};
4546
pub use ops::saturating::{Saturating, SaturatingAdd, SaturatingMul, SaturatingSub};
@@ -48,7 +49,6 @@ pub use ops::wrapping::{
4849
};
4950
pub use pow::{checked_pow, pow, Pow};
5051
pub use sign::{abs, abs_sub, signum, Signed, Unsigned};
51-
pub use ops::euclid::{DivRemEuclid,CheckedDivRemEuclid};
5252
#[macro_use]
5353
mod macros;
5454

src/ops/euclid.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use core::ops::{Div, Rem};
2-
use Float;
3-
2+
use float::Float;
43
pub trait DivRemEuclid: Sized + Div<Self, Output = Self> + Rem<Self, Output = Self> {
54
/// Calculates Euclidean division, the matching method for `rem_euclid`.
65
///

src/ops/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pub mod checked;
2-
pub mod inv;
32
pub mod euclid;
3+
pub mod inv;
44
pub mod mul_add;
55
pub mod overflowing;
66
pub mod saturating;

0 commit comments

Comments
 (0)