aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-21 18:04:18 +0100
committerGitHub <noreply@github.com>2024-03-21 17:04:18 +0000
commit694e86ecffb882f6d5934eb620257e9fceddbca8 (patch)
tree9046ce71d1b16bd64490078fdfb6eac87b064ef5 /components/script/dom/node.rs
parentb22281d94f230c455142b73576904fdec2d1140a (diff)
downloadservo-694e86ecffb882f6d5934eb620257e9fceddbca8.tar.gz
servo-694e86ecffb882f6d5934eb620257e9fceddbca8.zip
clippy: Fix dereferencing a tuple pattern warnings (#31811)
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index be834b44ba7..8ea043af2c8 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -2796,7 +2796,7 @@ impl NodeMethods for Node {
}
while children
.peek()
- .map_or(false, |&(_, ref sibling)| sibling.is::<Text>())
+ .map_or(false, |(_, sibling)| sibling.is::<Text>())
{
let (index, sibling) = children.next().unwrap();
sibling
@@ -3431,7 +3431,7 @@ unsafe_no_jsmanaged_fields!(UniqueId);
impl MallocSizeOf for UniqueId {
#[allow(unsafe_code)]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize {
- if let &Some(ref uuid) = unsafe { &*self.cell.get() } {
+ if let Some(uuid) = unsafe { &*self.cell.get() } {
unsafe { ops.malloc_size_of(&**uuid) }
} else {
0