aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser
diff options
context:
space:
mode:
authorRosemary Ajayi <okhuomonajayi54@gmail.com>2024-03-25 12:57:35 +0000
committerGitHub <noreply@github.com>2024-03-25 12:57:35 +0000
commit3d10dbae32149515dc839d69bc2ba14f12b45251 (patch)
treeb634b626cf3738318b00be3c25d372846c2f1cdd /components/script/dom/servoparser
parent97144ddf7104fd2cf8c1947db7f0d432754f37f5 (diff)
downloadservo-3d10dbae32149515dc839d69bc2ba14f12b45251.tar.gz
servo-3d10dbae32149515dc839d69bc2ba14f12b45251.zip
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
Diffstat (limited to 'components/script/dom/servoparser')
-rw-r--r--components/script/dom/servoparser/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/servoparser/mod.rs b/components/script/dom/servoparser/mod.rs
index acfb64aa069..d374a6e1de5 100644
--- a/components/script/dom/servoparser/mod.rs
+++ b/components/script/dom/servoparser/mod.rs
@@ -1187,7 +1187,7 @@ impl TreeSink for Sink {
.GetParentNode()
.expect("append_before_sibling called on node without parent");
- insert(&parent, Some(&*sibling), new_node, self.parsing_algorithm);
+ insert(&parent, Some(sibling), new_node, self.parsing_algorithm);
}
fn parse_error(&mut self, msg: Cow<'static, str>) {
@@ -1253,7 +1253,7 @@ impl TreeSink for Sink {
fn remove_from_parent(&mut self, target: &Dom<Node>) {
if let Some(ref parent) = target.GetParentNode() {
- parent.RemoveChild(&*target).unwrap();
+ parent.RemoveChild(target).unwrap();
}
}