Use num_traits in util

This commit is contained in:
Matt Brubeck 2016-05-17 11:24:17 -07:00
parent 6c08ad857e
commit aa8e214e34
7 changed files with 7 additions and 104 deletions

View file

@ -31,8 +31,8 @@ js = {git = "https://github.com/servo/rust-mozjs", optional = true}
lazy_static = "0.2"
libc = "0.2"
log = "0.3.5"
num = "0.1.32"
num_cpus = "0.2.2"
num-traits = "0.1.32"
plugins = {path = "../plugins"}
rand = "0.3"
rustc-serialize = "0.3"

View file

@ -34,8 +34,8 @@ extern crate lazy_static;
extern crate libc;
#[macro_use]
extern crate log;
extern crate num;
extern crate num_cpus;
extern crate num_traits;
extern crate rand;
extern crate rustc_serialize;
extern crate serde;

View file

@ -4,7 +4,7 @@
use app_units::Au;
use libc::c_char;
use num::ToPrimitive;
use num_traits::ToPrimitive;
use std::borrow::ToOwned;
use std::convert::AsRef;
use std::ffi::CStr;