aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-06-10 01:20:03 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-06-10 01:20:06 +0530
commit968b335f9ba82072f844897eeb6276a1b271bbd5 (patch)
treea2691fa46b7ef9489d38ee0565b15b7bd7a10d6e /components/script/dom
parentaf364a412ea0d3b1b9642b8d0ff20109e97bfff4 (diff)
downloadservo-968b335f9ba82072f844897eeb6276a1b271bbd5.tar.gz
servo-968b335f9ba82072f844897eeb6276a1b271bbd5.zip
Audit and reduce unstable usage in script
Reasons behind existing unstable features: alloc: - `Rc.make_unique()` - `into_raw` / `from_raw` (naming). All over the bindings code. collections: - `Vec.push_all()` - `from_str` - can be replaced by `.to_owned()` - `from_raw_buf` - could be done directly core: - `nonzero` - `UnsafeCell` (`as_unsafe_cell`) - `Zeroable` - `Peekable.is_empty` std_misc: - Handle stuff
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/imagedata.rs2
-rw-r--r--components/script/dom/storage.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/imagedata.rs b/components/script/dom/imagedata.rs
index 99dfbc853a7..2748fa1d438 100644
--- a/components/script/dom/imagedata.rs
+++ b/components/script/dom/imagedata.rs
@@ -12,7 +12,7 @@ use js::jsapi::{JSContext, JSObject};
use js::jsfriendapi::bindgen::{JS_NewUint8ClampedArray, JS_GetUint8ClampedArrayData};
use libc::uint8_t;
use std::vec::Vec;
-use collections::slice;
+use std::slice;
use std::ptr;
#[dom_struct]
diff --git a/components/script/dom/storage.rs b/components/script/dom/storage.rs
index 0afad8294ae..0e47e73fd90 100644
--- a/components/script/dom/storage.rs
+++ b/components/script/dom/storage.rs
@@ -17,13 +17,12 @@ use dom::window::WindowHelpers;
use util::str::DOMString;
use page::IterablePage;
use net_traits::storage_task::{StorageTask, StorageTaskMsg, StorageType};
+use std::borrow::ToOwned;
use std::sync::mpsc::channel;
use url::Url;
use script_task::{ScriptTask, ScriptMsg, MainThreadRunnable};
-use collections::borrow::ToOwned;
-
#[dom_struct]
pub struct Storage {
reflector_: Reflector,