diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-23 12:29:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 11:29:20 +0000 |
commit | 3c05b58221a2b5c879d31d355087a905de6494d8 (patch) | |
tree | b5f5fdd441e9d028b7a1a71782edf237400db7cd /components/script/dom/servoparser/async_html.rs | |
parent | 3fc157338e20936b8446c4685a477fad4169d92a (diff) | |
download | servo-3c05b58221a2b5c879d31d355087a905de6494d8.tar.gz servo-3c05b58221a2b5c879d31d355087a905de6494d8.zip |
clippy: Fix `explicit_auto_deref` warnings in `components/script` (#31837)
* clippy: Fix explicit auto-deref warnings
* clippy: Fix explicit auto-deref warnings
* refactor: Tidy up code
* refactor: Fix method not found errors
Diffstat (limited to 'components/script/dom/servoparser/async_html.rs')
-rw-r--r-- | components/script/dom/servoparser/async_html.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/servoparser/async_html.rs b/components/script/dom/servoparser/async_html.rs index af52fdf97cb..5beffe225f3 100644 --- a/components/script/dom/servoparser/async_html.rs +++ b/components/script/dom/servoparser/async_html.rs @@ -425,7 +425,7 @@ impl Tokenizer { let element = create_element_for_token( name, attrs, - &*self.document, + &self.document, ElementCreator::ParserCreated(current_line), ParsingAlgorithm::Normal, ); @@ -480,7 +480,7 @@ impl Tokenizer { }, ParseOperation::RemoveFromParent { target } => { if let Some(ref parent) = self.get_node(&target).GetParentNode() { - parent.RemoveChild(&**self.get_node(&target)).unwrap(); + parent.RemoveChild(self.get_node(&target)).unwrap(); } }, ParseOperation::MarkScriptAlreadyStarted { node } => { |