diff --git a/components/range/Cargo.toml b/components/range/Cargo.toml index d9f958149ef..3ac67f10338 100644 --- a/components/range/Cargo.toml +++ b/components/range/Cargo.toml @@ -12,7 +12,7 @@ path = "lib.rs" [dependencies] heapsize = "0.3.0" heapsize_plugin = "0.1.2" -num = "0.1.24" +num-traits = "0.1.32" rustc-serialize = "0.3" serde = "0.7" serde_macros = "0.7" diff --git a/components/range/lib.rs b/components/range/lib.rs index b598f638d09..d32909c0808 100644 --- a/components/range/lib.rs +++ b/components/range/lib.rs @@ -13,7 +13,7 @@ #![deny(unsafe_code)] extern crate heapsize; -extern crate num as num_lib; +extern crate num_traits; extern crate rustc_serialize; extern crate serde; @@ -43,7 +43,7 @@ impl Int for isize { #[inline] fn max_value() -> isize { ::std::isize::MAX } #[inline] - fn from_usize(n: usize) -> Option { num_lib::NumCast::from(n) } + fn from_usize(n: usize) -> Option { num_traits::NumCast::from(n) } } impl Int for usize { #[inline] diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock index 467d0166953..7e1307c2a15 100644 --- a/components/servo/Cargo.lock +++ b/components/servo/Cargo.lock @@ -1683,7 +1683,7 @@ version = "0.0.1" dependencies = [ "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "num 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", + "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/ports/cef/Cargo.lock b/ports/cef/Cargo.lock index eac929d3b8a..32d99033488 100644 --- a/ports/cef/Cargo.lock +++ b/ports/cef/Cargo.lock @@ -1559,7 +1559,7 @@ version = "0.0.1" dependencies = [ "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "num 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", + "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/ports/gonk/Cargo.lock b/ports/gonk/Cargo.lock index 21ad4a8fc57..3740ef54a77 100644 --- a/ports/gonk/Cargo.lock +++ b/ports/gonk/Cargo.lock @@ -1541,7 +1541,7 @@ version = "0.0.1" dependencies = [ "heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "num 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", + "num-traits 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_macros 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",