mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use Box::into_raw rather than boxed::into_raw.
The latter is deprecated.
This commit is contained in:
parent
ea06bebca9
commit
28086f3c75
4 changed files with 8 additions and 12 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue