diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-01 21:33:52 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-01 22:19:34 +0100 |
commit | 43eecf6e7a49a30cac1256fca0817585d4ab3ac8 (patch) | |
tree | 805a76c60f90d2e1052f3873fcbe2bc6145fc207 /components/script/script_task.rs | |
parent | 111a196e9d300164391d12ab292c1d4c0ef2b44a (diff) | |
download | servo-43eecf6e7a49a30cac1256fca0817585d4ab3ac8.tar.gz servo-43eecf6e7a49a30cac1256fca0817585d4ab3ac8.zip |
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.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index c1476780d61..c8646e5d6e3 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -392,7 +392,7 @@ impl ScriptTask { let js_runtime = js::rust::rt(); assert!({ let ptr: *mut JSRuntime = (*js_runtime).ptr; - ptr.is_not_null() + !ptr.is_null() }); // Unconstrain the runtime's threshold on nominal heap size, to avoid @@ -407,7 +407,7 @@ impl ScriptTask { let js_context = js_runtime.cx(); assert!({ let ptr: *mut JSContext = (*js_context).ptr; - ptr.is_not_null() + !ptr.is_null() }); js_context.set_default_options_and_version(); js_context.set_logging_error_reporter(); |