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/promise.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/promise.rs')
-rw-r--r-- | components/script/dom/promise.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/promise.rs b/components/script/dom/promise.rs index df9838ed5cc..20485618c18 100644 --- a/components/script/dom/promise.rs +++ b/components/script/dom/promise.rs @@ -72,7 +72,7 @@ impl Promise { #[allow(unsafe_code)] pub fn new(global: &GlobalScope) -> Rc<Promise> { let cx = global.get_cx(); - rooted!(in(cx) let mut obj = ptr::null_mut()); + rooted!(in(cx) let mut obj = ptr::null_mut::<JSObject>()); unsafe { Promise::create_js_promise(cx, HandleObject::null(), obj.handle_mut()); Promise::new_with_js_promise(obj.handle(), cx) |