From 529d7634dd21417b022461834dbc0590ff1ad305 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 25 Mar 2016 16:22:02 -0700 Subject: [PATCH] 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. --- src/lib.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4ba0ead..cd25dbd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -80,18 +80,18 @@ extern crate rand; extern crate serde; #[cfg(feature = "num-bigint")] -pub use bigint::{BigInt, BigUint}; +pub use num_bigint::{BigInt, BigUint}; #[cfg(feature = "num-rational")] -pub use rational::Rational; +pub use num_rational::Rational; #[cfg(all(feature = "num-rational", feature="num-bigint"))] -pub use rational::BigRational; +pub use num_rational::BigRational; #[cfg(feature = "num-complex")] -pub use complex::Complex; -pub use integer::Integer; -pub use iter::{range, range_inclusive, range_step, range_step_inclusive}; -pub use traits::{Num, Zero, One, Signed, Unsigned, Bounded, - Saturating, CheckedAdd, CheckedSub, CheckedMul, CheckedDiv, - PrimInt, Float, ToPrimitive, FromPrimitive, NumCast, cast}; +pub use num_complex::Complex; +pub use num_integer::Integer; +pub use num_iter::{range, range_inclusive, range_step, range_step_inclusive}; +pub use num_traits::{Num, Zero, One, Signed, Unsigned, Bounded, + Saturating, CheckedAdd, CheckedSub, CheckedMul, CheckedDiv, + PrimInt, Float, ToPrimitive, FromPrimitive, NumCast, cast}; #[cfg(test)] use std::hash;