traits: use `cast` items before `int`
For some reason, rustc 1.0.0 can't find `PrimInt` if it's before `cast`, but later versions are fine with this. That may have been a compiler bug that was fixed. Switching the order seems to work everywhere.
This commit is contained in:
parent
37325eec73
commit
b73cfa57bb
|
@ -18,16 +18,16 @@ pub use identities::{Zero, One};
|
|||
pub use ops::checked::*;
|
||||
pub use ops::saturating::Saturating;
|
||||
pub use sign::{Signed, Unsigned};
|
||||
pub use int::PrimInt;
|
||||
pub use cast::*;
|
||||
pub use int::PrimInt;
|
||||
|
||||
pub mod identities;
|
||||
pub mod sign;
|
||||
pub mod ops;
|
||||
pub mod bounds;
|
||||
pub mod float;
|
||||
pub mod int;
|
||||
pub mod cast;
|
||||
pub mod int;
|
||||
|
||||
/// The base trait for numeric types
|
||||
pub trait Num: PartialEq + Zero + One
|
||||
|
|
Loading…
Reference in New Issue