diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-01-04 18:13:44 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-01-10 20:54:35 +0100 |
commit | 4d459bce32a48e040399b3e05e66ba5ea26dd7f1 (patch) | |
tree | 1f572412428a0acda8b24e4f49be530b814509cc /components/script/dom/bindings/utils.rs | |
parent | cee2aadd828efa717d08a15eb2cb35fe0b7e6943 (diff) | |
download | servo-4d459bce32a48e040399b3e05e66ba5ea26dd7f1.tar.gz servo-4d459bce32a48e040399b3e05e66ba5ea26dd7f1.zip |
Fix tyvar_behind_raw_pointer warnings
https://github.com/rust-lang/rust/issues/46906
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 2a23281c8fe..4a6d19f972a 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -134,7 +134,7 @@ pub unsafe fn get_property_on_prototype(cx: *mut JSContext, found: *mut bool, vp: MutableHandleValue) -> bool { - rooted!(in(cx) let mut proto = ptr::null_mut()); + rooted!(in(cx) let mut proto = ptr::null_mut::<JSObject>()); if !JS_GetPrototype(cx, proxy, proto.handle_mut()) || proto.is_null() { *found = false; return true; @@ -287,7 +287,7 @@ pub unsafe fn has_property_on_prototype(cx: *mut JSContext, id: HandleId, found: &mut bool) -> bool { - rooted!(in(cx) let mut proto = ptr::null_mut()); + rooted!(in(cx) let mut proto = ptr::null_mut::<JSObject>()); if !JS_GetPrototype(cx, proxy, proto.handle_mut()) { return false; } |