mirror of
https://github.com/servo/servo
synced 2026-05-01 11:57:31 +02:00
Stop using ptr.is_not_null() in script.
This method is deprecated in rust master; removing its users in advance will make a future rust upgrade smoother.
This commit is contained in:
@@ -121,7 +121,7 @@ impl CallbackInterface {
|
||||
pub fn WrapCallThisObject<T: Reflectable>(cx: *mut JSContext,
|
||||
p: JSRef<T>) -> *mut JSObject {
|
||||
let mut obj = p.reflector().get_jsobject();
|
||||
assert!(obj.is_not_null());
|
||||
assert!(!obj.is_null());
|
||||
|
||||
unsafe {
|
||||
if JS_WrapObject(cx, &mut obj) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user