aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlstyleelement.rs
diff options
context:
space:
mode:
authorAzhar Ismagulova <31756707+azharcodeit@users.noreply.github.com>2024-03-29 08:58:22 +0000
committerGitHub <noreply@github.com>2024-03-29 08:58:22 +0000
commitc4739675d8bf83a83d8e26d5d7527180f003e7d5 (patch)
treece5d2642396eb98dc495078ffac97477916bf1e7 /components/script/dom/htmlstyleelement.rs
parent2d5a1cd02ee0c3196875dc52ca55a150a63cc29f (diff)
downloadservo-c4739675d8bf83a83d8e26d5d7527180f003e7d5.tar.gz
servo-c4739675d8bf83a83d8e26d5d7527180f003e7d5.zip
clippy: Fix needless_borrow warnings in components/script (#31928)
Diffstat (limited to 'components/script/dom/htmlstyleelement.rs')
-rw-r--r--components/script/dom/htmlstyleelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs
index c298db7398e..002e4e8a9c2 100644
--- a/components/script/dom/htmlstyleelement.rs
+++ b/components/script/dom/htmlstyleelement.rs
@@ -225,7 +225,7 @@ impl VirtualMethods for HTMLStyleElement {
}
fn unbind_from_tree(&self, context: &UnbindContext) {
- if let Some(ref s) = self.super_type() {
+ if let Some(s) = self.super_type() {
s.unbind_from_tree(context);
}