mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00: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:
parent
111a196e9d
commit
43eecf6e7a
8 changed files with 27 additions and 27 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue