num: use original num_foo crate names for imports
Rust 1.0.0 can't seem to find `foo::bar` imports from renamed crates like `pub use num_foo as foo`. Use `num_foo::bar` instead.
This commit is contained in:
parent
b73cfa57bb
commit
529d7634dd
14
src/lib.rs
14
src/lib.rs
|
@ -80,16 +80,16 @@ extern crate rand;
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
|
|
||||||
#[cfg(feature = "num-bigint")]
|
#[cfg(feature = "num-bigint")]
|
||||||
pub use bigint::{BigInt, BigUint};
|
pub use num_bigint::{BigInt, BigUint};
|
||||||
#[cfg(feature = "num-rational")]
|
#[cfg(feature = "num-rational")]
|
||||||
pub use rational::Rational;
|
pub use num_rational::Rational;
|
||||||
#[cfg(all(feature = "num-rational", feature="num-bigint"))]
|
#[cfg(all(feature = "num-rational", feature="num-bigint"))]
|
||||||
pub use rational::BigRational;
|
pub use num_rational::BigRational;
|
||||||
#[cfg(feature = "num-complex")]
|
#[cfg(feature = "num-complex")]
|
||||||
pub use complex::Complex;
|
pub use num_complex::Complex;
|
||||||
pub use integer::Integer;
|
pub use num_integer::Integer;
|
||||||
pub use iter::{range, range_inclusive, range_step, range_step_inclusive};
|
pub use num_iter::{range, range_inclusive, range_step, range_step_inclusive};
|
||||||
pub use traits::{Num, Zero, One, Signed, Unsigned, Bounded,
|
pub use num_traits::{Num, Zero, One, Signed, Unsigned, Bounded,
|
||||||
Saturating, CheckedAdd, CheckedSub, CheckedMul, CheckedDiv,
|
Saturating, CheckedAdd, CheckedSub, CheckedMul, CheckedDiv,
|
||||||
PrimInt, Float, ToPrimitive, FromPrimitive, NumCast, cast};
|
PrimInt, Float, ToPrimitive, FromPrimitive, NumCast, cast};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue