diff options
author | Ekta Siwach <137225906+ektuu@users.noreply.github.com> | 2024-03-29 20:13:10 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 14:43:10 +0000 |
commit | b0196ad3734149c98cfad89df0864fca3bdf92ce (patch) | |
tree | 36d0aa69709b7e6fdaf055b50c8eac386891b17b /components/script/dom/htmlvideoelement.rs | |
parent | 4a68243f65c4fc32a4d12faa21d9c36e02a05f52 (diff) | |
download | servo-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.rs | 9 |
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); + } } } } |