diff options
author | Azhar Ismagulova <31756707+azharcodeit@users.noreply.github.com> | 2024-03-29 08:58:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 08:58:22 +0000 |
commit | c4739675d8bf83a83d8e26d5d7527180f003e7d5 (patch) | |
tree | ce5d2642396eb98dc495078ffac97477916bf1e7 /components/script/dom/node.rs | |
parent | 2d5a1cd02ee0c3196875dc52ca55a150a63cc29f (diff) | |
download | servo-c4739675d8bf83a83d8e26d5d7527180f003e7d5.tar.gz servo-c4739675d8bf83a83d8e26d5d7527180f003e7d5.zip |
clippy: Fix needless_borrow warnings in components/script (#31928)
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 85305103c40..cb5c97afb52 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -232,12 +232,12 @@ impl Node { assert!(new_child.prev_sibling.get().is_none()); assert!(new_child.next_sibling.get().is_none()); match before { - Some(ref before) => { + Some(before) => { assert!(before.parent_node.get().as_deref() == Some(self)); let prev_sibling = before.GetPreviousSibling(); match prev_sibling { None => { - assert!(self.first_child.get().as_deref() == Some(*before)); + assert!(self.first_child.get().as_deref() == Some(before)); self.first_child.set(Some(new_child)); }, Some(ref prev_sibling) => { |