mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix some clippy warnings in components/script
(#31843)
* deref on an immutable reference * fix deref on an immutable reference * fix deref on an immutable reference
This commit is contained in:
parent
97144ddf71
commit
3d10dbae32
3 changed files with 6 additions and 6 deletions
|
@ -636,7 +636,7 @@ impl WindowProxy {
|
|||
((*get_object_class(window_jsobject.get())).flags & JSCLASS_IS_GLOBAL),
|
||||
0
|
||||
);
|
||||
let _ac = enter_realm(&*window);
|
||||
let _ac = enter_realm(window);
|
||||
|
||||
// The old window proxy no longer owns this browsing context.
|
||||
SetProxyReservedSlot(old_js_proxy.get(), 0, &PrivateValue(ptr::null_mut()));
|
||||
|
@ -681,7 +681,7 @@ impl WindowProxy {
|
|||
);
|
||||
}
|
||||
}
|
||||
self.set_window(&*globalscope, &PROXY_HANDLER);
|
||||
self.set_window(globalscope, &PROXY_HANDLER);
|
||||
self.currently_active.set(Some(globalscope.pipeline_id()));
|
||||
}
|
||||
|
||||
|
@ -691,7 +691,7 @@ impl WindowProxy {
|
|||
}
|
||||
let globalscope = self.global();
|
||||
let window = DissimilarOriginWindow::new(&globalscope, self);
|
||||
self.set_window(&*window.upcast(), &XORIGIN_PROXY_HANDLER);
|
||||
self.set_window(window.upcast(), &XORIGIN_PROXY_HANDLER);
|
||||
self.currently_active.set(None);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue