mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue