Use num-traits in script.

This commit is contained in:
Ms2ger 2016-04-20 15:23:43 +02:00
parent 0f2b83ca0f
commit 03d4bacc05
13 changed files with 13 additions and 13 deletions

View file

@ -78,7 +78,7 @@ hyper = { version = "0.8", features = [ "serde-serialization" ] }
image = "0.9" image = "0.9"
libc = "0.2" libc = "0.2"
log = "0.3.5" log = "0.3.5"
num = "0.1.24" num-traits = "0.1.32"
offscreen_gl_context = "0.1.2" offscreen_gl_context = "0.1.2"
rand = "0.3" rand = "0.3"
phf = "0.7.13" phf = "0.7.13"

View file

@ -53,7 +53,7 @@ use js::jsapi::{Type};
use js::jsval::{ObjectValue, StringValue}; use js::jsval::{ObjectValue, StringValue};
use js::rust::ToString; use js::rust::ToString;
use libc; use libc;
use num::Float; use num_traits::Float;
use std::{ptr, mem, slice}; use std::{ptr, mem, slice};
pub use util::non_geckolib::{StringificationBehavior, jsstring_to_str}; pub use util::non_geckolib::{StringificationBehavior, jsstring_to_str};
use util::str::DOMString; use util::str::DOMString;

View file

@ -4,7 +4,7 @@
//! The `Finite<T>` struct. //! The `Finite<T>` struct.
use num::Float; use num_traits::Float;
use std::ops::Deref; use std::ops::Deref;
/// Encapsulates the IDL restricted float type. /// Encapsulates the IDL restricted float type.

View file

@ -12,7 +12,7 @@ use dom::bindings::reflector::{Reflectable, Reflector, reflect_dom_object};
use dom::bindings::trace::JSTraceable; use dom::bindings::trace::JSTraceable;
use encoding::all::UTF_8; use encoding::all::UTF_8;
use encoding::types::{EncoderTrap, Encoding}; use encoding::types::{EncoderTrap, Encoding};
use num::ToPrimitive; use num_traits::ToPrimitive;
use std::ascii::AsciiExt; use std::ascii::AsciiExt;
use std::borrow::ToOwned; use std::borrow::ToOwned;
use std::cell::Cell; use std::cell::Cell;

View file

@ -39,7 +39,7 @@ use euclid::size::Size2D;
use ipc_channel::ipc::{self, IpcSender}; use ipc_channel::ipc::{self, IpcSender};
use net_traits::image::base::PixelFormat; use net_traits::image::base::PixelFormat;
use net_traits::image_cache_thread::ImageResponse; use net_traits::image_cache_thread::ImageResponse;
use num::{Float, ToPrimitive}; use num_traits::{Float, ToPrimitive};
use script_traits::ScriptMsg as ConstellationMsg; use script_traits::ScriptMsg as ConstellationMsg;
use std::cell::Cell; use std::cell::Cell;
use std::str::FromStr; use std::str::FromStr;

View file

@ -93,7 +93,7 @@ use net_traits::ControlMsg::{GetCookiesForUrl, SetCookiesForUrl};
use net_traits::CookieSource::NonHTTP; use net_traits::CookieSource::NonHTTP;
use net_traits::response::HttpsState; use net_traits::response::HttpsState;
use net_traits::{AsyncResponseTarget, PendingAsyncLoad}; use net_traits::{AsyncResponseTarget, PendingAsyncLoad};
use num::ToPrimitive; use num_traits::ToPrimitive;
use origin::Origin; use origin::Origin;
use script_runtime::ScriptChan; use script_runtime::ScriptChan;
use script_thread::{MainThreadScriptChan, MainThreadScriptMsg, Runnable}; use script_thread::{MainThreadScriptChan, MainThreadScriptMsg, Runnable};

View file

@ -25,7 +25,7 @@ use dom::mouseevent::MouseEvent;
use dom::node::{Node, document_from_node, window_from_node}; use dom::node::{Node, document_from_node, window_from_node};
use dom::urlhelper::UrlHelper; use dom::urlhelper::UrlHelper;
use dom::virtualmethods::VirtualMethods; use dom::virtualmethods::VirtualMethods;
use num::ToPrimitive; use num_traits::ToPrimitive;
use std::default::Default; use std::default::Default;
use string_cache::Atom; use string_cache::Atom;
use url::{Url, UrlParser}; use url::{Url, UrlParser};

View file

@ -48,7 +48,7 @@ use msg::webdriver_msg::{WebDriverJSError, WebDriverJSResult};
use net_traits::ResourceThread; use net_traits::ResourceThread;
use net_traits::image_cache_thread::{ImageCacheChan, ImageCacheThread}; use net_traits::image_cache_thread::{ImageCacheChan, ImageCacheThread};
use net_traits::storage_thread::{StorageThread, StorageType}; use net_traits::storage_thread::{StorageThread, StorageType};
use num::traits::ToPrimitive; use num_traits::ToPrimitive;
use page::Page; use page::Page;
use profile_traits::mem; use profile_traits::mem;
use reporter::CSSErrorReporter; use reporter::CSSErrorReporter;

View file

@ -53,7 +53,7 @@ extern crate libc;
extern crate log; extern crate log;
extern crate msg; extern crate msg;
extern crate net_traits; extern crate net_traits;
extern crate num; extern crate num_traits;
extern crate offscreen_gl_context; extern crate offscreen_gl_context;
extern crate phf; extern crate phf;
#[macro_use] #[macro_use]

View file

@ -15,7 +15,7 @@ use heapsize::HeapSizeOf;
use ipc_channel::ipc::IpcSender; use ipc_channel::ipc::IpcSender;
use js::jsapi::{HandleValue, Heap, RootedValue}; use js::jsapi::{HandleValue, Heap, RootedValue};
use js::jsval::{JSVal, UndefinedValue}; use js::jsval::{JSVal, UndefinedValue};
use num::traits::Saturating; use num_traits::Saturating;
use script_traits::{MsDuration, precise_time_ms}; use script_traits::{MsDuration, precise_time_ms};
use script_traits::{TimerEvent, TimerEventId, TimerEventRequest, TimerSource}; use script_traits::{TimerEvent, TimerEventId, TimerEventRequest, TimerSource};
use std::cell::Cell; use std::cell::Cell;

View file

@ -1773,7 +1773,7 @@ dependencies = [
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"msg 0.0.1", "msg 0.0.1",
"net_traits 0.0.1", "net_traits 0.0.1",
"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)",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"phf 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", "phf 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)",
"phf_macros 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", "phf_macros 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)",

2
ports/cef/Cargo.lock generated
View file

@ -1649,7 +1649,7 @@ dependencies = [
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"msg 0.0.1", "msg 0.0.1",
"net_traits 0.0.1", "net_traits 0.0.1",
"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)",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"phf 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", "phf 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)",
"phf_macros 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", "phf_macros 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)",

2
ports/gonk/Cargo.lock generated
View file

@ -1631,7 +1631,7 @@ dependencies = [
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"msg 0.0.1", "msg 0.0.1",
"net_traits 0.0.1", "net_traits 0.0.1",
"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)",
"offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "offscreen_gl_context 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"phf 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", "phf 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)",
"phf_macros 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", "phf_macros 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)",