mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove usage of unstable features const_ptr_null and const_ptr_null_mut
This commit is contained in:
parent
3bb76a5be5
commit
5a5b7d7f39
3 changed files with 4 additions and 7 deletions
|
@ -8,7 +8,6 @@ use dom::bindings::guard::Guard;
|
|||
use dom::bindings::interface::{create_object, define_on_global_object};
|
||||
use js::jsapi::{HandleObject, JSClass, JSContext, JSFunctionSpec, MutableHandleObject};
|
||||
use libc;
|
||||
use std::ptr;
|
||||
|
||||
/// The class of a namespace object.
|
||||
#[derive(Clone, Copy)]
|
||||
|
@ -22,8 +21,8 @@ impl NamespaceObjectClass {
|
|||
NamespaceObjectClass(JSClass {
|
||||
name: name as *const _ as *const libc::c_char,
|
||||
flags: 0,
|
||||
cOps: ptr::null_mut(),
|
||||
reserved: [ptr::null_mut(); 3],
|
||||
cOps: 0 as *mut _,
|
||||
reserved: [0 as *mut _; 3],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue