mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue