mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix op_ref warnings (#31900)
This commit is contained in:
parent
773e881971
commit
da518823ff
8 changed files with 15 additions and 19 deletions
|
@ -628,7 +628,7 @@ impl HTMLScriptElement {
|
|||
|
||||
// Step 12.
|
||||
let doc = document_from_node(self);
|
||||
if self.parser_inserted.get() && &*self.parser_document != &*doc {
|
||||
if self.parser_inserted.get() && *self.parser_document != *doc {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -983,7 +983,7 @@ impl HTMLScriptElement {
|
|||
pub fn execute(&self, result: ScriptResult) {
|
||||
// Step 1.
|
||||
let doc = document_from_node(self);
|
||||
if self.parser_inserted.get() && &*doc != &*self.parser_document {
|
||||
if self.parser_inserted.get() && *doc != *self.parser_document {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue