mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
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
This commit is contained in:
parent
af364a412e
commit
968b335f9b
4 changed files with 3 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
use msg::constellation_msg::ConstellationChan;
|
use msg::constellation_msg::ConstellationChan;
|
||||||
use msg::constellation_msg::Msg as ConstellationMsg;
|
use msg::constellation_msg::Msg as ConstellationMsg;
|
||||||
|
|
||||||
use collections::borrow::ToOwned;
|
use std::borrow::ToOwned;
|
||||||
use std::sync::mpsc::channel;
|
use std::sync::mpsc::channel;
|
||||||
|
|
||||||
pub trait ClipboardProvider {
|
pub trait ClipboardProvider {
|
||||||
|
|
|
@ -12,7 +12,7 @@ use js::jsapi::{JSContext, JSObject};
|
||||||
use js::jsfriendapi::bindgen::{JS_NewUint8ClampedArray, JS_GetUint8ClampedArrayData};
|
use js::jsfriendapi::bindgen::{JS_NewUint8ClampedArray, JS_GetUint8ClampedArrayData};
|
||||||
use libc::uint8_t;
|
use libc::uint8_t;
|
||||||
use std::vec::Vec;
|
use std::vec::Vec;
|
||||||
use collections::slice;
|
use std::slice;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
#[dom_struct]
|
#[dom_struct]
|
||||||
|
|
|
@ -17,13 +17,12 @@ use dom::window::WindowHelpers;
|
||||||
use util::str::DOMString;
|
use util::str::DOMString;
|
||||||
use page::IterablePage;
|
use page::IterablePage;
|
||||||
use net_traits::storage_task::{StorageTask, StorageTaskMsg, StorageType};
|
use net_traits::storage_task::{StorageTask, StorageTaskMsg, StorageType};
|
||||||
|
use std::borrow::ToOwned;
|
||||||
use std::sync::mpsc::channel;
|
use std::sync::mpsc::channel;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
use script_task::{ScriptTask, ScriptMsg, MainThreadRunnable};
|
use script_task::{ScriptTask, ScriptMsg, MainThreadRunnable};
|
||||||
|
|
||||||
use collections::borrow::ToOwned;
|
|
||||||
|
|
||||||
#[dom_struct]
|
#[dom_struct]
|
||||||
pub struct Storage {
|
pub struct Storage {
|
||||||
reflector_: Reflector,
|
reflector_: Reflector,
|
||||||
|
|
|
@ -25,7 +25,6 @@ extern crate log;
|
||||||
extern crate core;
|
extern crate core;
|
||||||
extern crate devtools_traits;
|
extern crate devtools_traits;
|
||||||
extern crate cssparser;
|
extern crate cssparser;
|
||||||
extern crate collections;
|
|
||||||
extern crate geom;
|
extern crate geom;
|
||||||
extern crate html5ever;
|
extern crate html5ever;
|
||||||
extern crate encoding;
|
extern crate encoding;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue