aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlheadelement.rs
diff options
context:
space:
mode:
authorAarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com>2024-03-21 12:44:12 +0530
committerGitHub <noreply@github.com>2024-03-21 07:14:12 +0000
commitda3288dd00c16f6c4ac18cd3b6ba87a2917978d1 (patch)
tree77d90e149f17137649c6331e330dc3445c4510f6 /components/script/dom/htmlheadelement.rs
parent5c0199b5687a5c0c1b2fe82235ca609c7d9ea614 (diff)
downloadservo-da3288dd00c16f6c4ac18cd3b6ba87a2917978d1.tar.gz
servo-da3288dd00c16f6c4ac18cd3b6ba87a2917978d1.zip
Clippy: Fixed clippy warnings in components/script/dom (#31801)
* fixed clippy warnings in htmlformelement.rs * Fixed clippy warnings * Fixed warnings related to matches! * made changes to compile "test-tidy" successfully
Diffstat (limited to 'components/script/dom/htmlheadelement.rs')
-rw-r--r--components/script/dom/htmlheadelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlheadelement.rs b/components/script/dom/htmlheadelement.rs
index ad95bbd9224..9fd83041016 100644
--- a/components/script/dom/htmlheadelement.rs
+++ b/components/script/dom/htmlheadelement.rs
@@ -87,7 +87,7 @@ impl VirtualMethods for HTMLHeadElement {
Some(self.upcast::<HTMLElement>() as &dyn VirtualMethods)
}
fn bind_to_tree(&self, context: &BindContext) {
- if let Some(ref s) = self.super_type() {
+ if let Some(s) = self.super_type() {
s.bind_to_tree(context);
}
load_script(self);