mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use num-traits in script.
This commit is contained in:
parent
0f2b83ca0f
commit
03d4bacc05
13 changed files with 13 additions and 13 deletions
|
@ -78,7 +78,7 @@ hyper = { version = "0.8", features = [ "serde-serialization" ] }
|
|||
image = "0.9"
|
||||
libc = "0.2"
|
||||
log = "0.3.5"
|
||||
num = "0.1.24"
|
||||
num-traits = "0.1.32"
|
||||
offscreen_gl_context = "0.1.2"
|
||||
rand = "0.3"
|
||||
phf = "0.7.13"
|
||||
|
|
|
@ -53,7 +53,7 @@ use js::jsapi::{Type};
|
|||
use js::jsval::{ObjectValue, StringValue};
|
||||
use js::rust::ToString;
|
||||
use libc;
|
||||
use num::Float;
|
||||
use num_traits::Float;
|
||||
use std::{ptr, mem, slice};
|
||||
pub use util::non_geckolib::{StringificationBehavior, jsstring_to_str};
|
||||
use util::str::DOMString;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
//! The `Finite<T>` struct.
|
||||
|
||||
use num::Float;
|
||||
use num_traits::Float;
|
||||
use std::ops::Deref;
|
||||
|
||||
/// Encapsulates the IDL restricted float type.
|
||||
|
|
|
@ -12,7 +12,7 @@ use dom::bindings::reflector::{Reflectable, Reflector, reflect_dom_object};
|
|||
use dom::bindings::trace::JSTraceable;
|
||||
use encoding::all::UTF_8;
|
||||
use encoding::types::{EncoderTrap, Encoding};
|
||||
use num::ToPrimitive;
|
||||
use num_traits::ToPrimitive;
|
||||
use std::ascii::AsciiExt;
|
||||
use std::borrow::ToOwned;
|
||||
use std::cell::Cell;
|
||||
|
|
|
@ -39,7 +39,7 @@ use euclid::size::Size2D;
|
|||
use ipc_channel::ipc::{self, IpcSender};
|
||||
use net_traits::image::base::PixelFormat;
|
||||
use net_traits::image_cache_thread::ImageResponse;
|
||||
use num::{Float, ToPrimitive};
|
||||
use num_traits::{Float, ToPrimitive};
|
||||
use script_traits::ScriptMsg as ConstellationMsg;
|
||||
use std::cell::Cell;
|
||||
use std::str::FromStr;
|
||||
|
|
|
@ -93,7 +93,7 @@ use net_traits::ControlMsg::{GetCookiesForUrl, SetCookiesForUrl};
|
|||
use net_traits::CookieSource::NonHTTP;
|
||||
use net_traits::response::HttpsState;
|
||||
use net_traits::{AsyncResponseTarget, PendingAsyncLoad};
|
||||
use num::ToPrimitive;
|
||||
use num_traits::ToPrimitive;
|
||||
use origin::Origin;
|
||||
use script_runtime::ScriptChan;
|
||||
use script_thread::{MainThreadScriptChan, MainThreadScriptMsg, Runnable};
|
||||
|
|
|
@ -25,7 +25,7 @@ use dom::mouseevent::MouseEvent;
|
|||
use dom::node::{Node, document_from_node, window_from_node};
|
||||
use dom::urlhelper::UrlHelper;
|
||||
use dom::virtualmethods::VirtualMethods;
|
||||
use num::ToPrimitive;
|
||||
use num_traits::ToPrimitive;
|
||||
use std::default::Default;
|
||||
use string_cache::Atom;
|
||||
use url::{Url, UrlParser};
|
||||
|
|
|
@ -48,7 +48,7 @@ use msg::webdriver_msg::{WebDriverJSError, WebDriverJSResult};
|
|||
use net_traits::ResourceThread;
|
||||
use net_traits::image_cache_thread::{ImageCacheChan, ImageCacheThread};
|
||||
use net_traits::storage_thread::{StorageThread, StorageType};
|
||||
use num::traits::ToPrimitive;
|
||||
use num_traits::ToPrimitive;
|
||||
use page::Page;
|
||||
use profile_traits::mem;
|
||||
use reporter::CSSErrorReporter;
|
||||
|
|
|
@ -53,7 +53,7 @@ extern crate libc;
|
|||
extern crate log;
|
||||
extern crate msg;
|
||||
extern crate net_traits;
|
||||
extern crate num;
|
||||
extern crate num_traits;
|
||||
extern crate offscreen_gl_context;
|
||||
extern crate phf;
|
||||
#[macro_use]
|
||||
|
|
|
@ -15,7 +15,7 @@ use heapsize::HeapSizeOf;
|
|||
use ipc_channel::ipc::IpcSender;
|
||||
use js::jsapi::{HandleValue, Heap, RootedValue};
|
||||
use js::jsval::{JSVal, UndefinedValue};
|
||||
use num::traits::Saturating;
|
||||
use num_traits::Saturating;
|
||||
use script_traits::{MsDuration, precise_time_ms};
|
||||
use script_traits::{TimerEvent, TimerEventId, TimerEventRequest, TimerSource};
|
||||
use std::cell::Cell;
|
||||
|
|
2
components/servo/Cargo.lock
generated
2
components/servo/Cargo.lock
generated
|
@ -1773,7 +1773,7 @@ dependencies = [
|
|||
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"msg 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)",
|
||||
"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)",
|
||||
|
|
2
ports/cef/Cargo.lock
generated
2
ports/cef/Cargo.lock
generated
|
@ -1649,7 +1649,7 @@ dependencies = [
|
|||
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"msg 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)",
|
||||
"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)",
|
||||
|
|
2
ports/gonk/Cargo.lock
generated
2
ports/gonk/Cargo.lock
generated
|
@ -1631,7 +1631,7 @@ dependencies = [
|
|||
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"msg 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)",
|
||||
"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)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue