diff options
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 3 | ||||
-rw-r--r-- | components/script/dom/bindings/utils.rs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 2847401e65c..5aa3adecc41 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -2059,7 +2059,7 @@ class CGAbstractMethod(CGThing): assert(False) # Override me! def CreateBindingJSObject(descriptor, parent=None): - create = "let mut raw = boxed::into_raw(object);\nlet _rt = RootedTraceable::new(&*raw);\n" + create = "let mut raw = Box::into_raw(object);\nlet _rt = RootedTraceable::new(&*raw);\n" if descriptor.proxy: assert not descriptor.isGlobal() create += """ @@ -5061,7 +5061,6 @@ class CGBindingRoot(CGThing): 'libc', 'util::str::DOMString', 'std::borrow::ToOwned', - 'std::boxed', 'std::cmp', 'std::iter::repeat', 'std::mem', diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 5a2eb51f2ce..e2db66ac3de 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -21,7 +21,6 @@ use util::str::DOMString; use libc; use libc::c_uint; -use std::boxed; use std::ffi::CString; use std::ptr; use std::cmp::PartialEq; @@ -387,7 +386,7 @@ pub fn initialize_global(global: *mut JSObject) { ([0 as *mut JSObject; PrototypeList::ID::Count as usize]); unsafe { assert!(((*JS_GetClass(global)).flags & JSCLASS_DOM_GLOBAL) != 0); - let box_ = boxed::into_raw(proto_array); + let box_ = Box::into_raw(proto_array); JS_SetReservedSlot(global, DOM_PROTOTYPE_SLOT, PrivateValue(box_ as *const libc::c_void)); |