From 02a0cdd6faf80b77c6b066120bc2927c963affe3 Mon Sep 17 00:00:00 2001 From: Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> Date: Wed, 20 Mar 2024 09:07:22 +0100 Subject: clippy: Fix dereferenced warnings (#31770) --- components/script/dom/servoparser/async_html.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/servoparser/async_html.rs') diff --git a/components/script/dom/servoparser/async_html.rs b/components/script/dom/servoparser/async_html.rs index 3c717f57b71..4b04cd822a6 100644 --- a/components/script/dom/servoparser/async_html.rs +++ b/components/script/dom/servoparser/async_html.rs @@ -433,7 +433,7 @@ impl Tokenizer { }, ParseOperation::CreateComment { text, node } => { let comment = Comment::new(DOMString::from(text), document, None); - self.insert_node(node, Dom::from_ref(&comment.upcast())); + self.insert_node(node, Dom::from_ref(comment.upcast())); }, ParseOperation::AppendBeforeSibling { sibling, node } => { self.append_before_sibling(sibling, node); -- cgit v1.2.3