aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlvideoelement.rs
diff options
context:
space:
mode:
authorEkta Siwach <137225906+ektuu@users.noreply.github.com>2024-03-29 20:13:10 +0530
committerGitHub <noreply@github.com>2024-03-29 14:43:10 +0000
commitb0196ad3734149c98cfad89df0864fca3bdf92ce (patch)
tree36d0aa69709b7e6fdaf055b50c8eac386891b17b /components/script/dom/htmlvideoelement.rs
parent4a68243f65c4fc32a4d12faa21d9c36e02a05f52 (diff)
downloadservo-b0196ad3734149c98cfad89df0864fca3bdf92ce.tar.gz
servo-b0196ad3734149c98cfad89df0864fca3bdf92ce.zip
clippy: Fix a variety of warnings in components/script/dom (#31894)
Diffstat (limited to 'components/script/dom/htmlvideoelement.rs')
-rw-r--r--components/script/dom/htmlvideoelement.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs
index 89574d78dbe..b09503627c5 100644
--- a/components/script/dom/htmlvideoelement.rs
+++ b/components/script/dom/htmlvideoelement.rs
@@ -279,12 +279,9 @@ impl VirtualMethods for HTMLVideoElement {
self.super_type().unwrap().attribute_mutated(attr, mutation);
if let Some(new_value) = mutation.new_value(attr) {
- match attr.local_name() {
- &local_name!("poster") => {
- self.fetch_poster_frame(&new_value);
- },
- _ => (),
- };
+ if attr.local_name() == &local_name!("poster") {
+ self.fetch_poster_frame(&new_value);
+ }
}
}
}