diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-06-25 23:03:54 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-06-25 23:03:54 +0200 |
commit | 28086f3c75edefb7c516a409bb9c66ed226dbcd8 (patch) | |
tree | 1cbc7af1a2bd2e48add5095c92a82857b651f8b1 /components/script/dom/bindings/codegen/CodegenRust.py | |
parent | ea06bebca9fab485485ce60bd3f464bc64bf1c36 (diff) | |
download | servo-28086f3c75edefb7c516a409bb9c66ed226dbcd8.tar.gz servo-28086f3c75edefb7c516a409bb9c66ed226dbcd8.zip |
Use Box::into_raw rather than boxed::into_raw.
The latter is deprecated.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 3 |
1 files changed, 1 insertions, 2 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', |