aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlhrelement.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/htmlhrelement.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/htmlhrelement.rs')
-rw-r--r--components/script/dom/htmlhrelement.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmlhrelement.rs b/components/script/dom/htmlhrelement.rs
index 1a63747aa57..96ba4733735 100644
--- a/components/script/dom/htmlhrelement.rs
+++ b/components/script/dom/htmlhrelement.rs
@@ -97,10 +97,10 @@ impl VirtualMethods for HTMLHRElement {
}
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue {
- match name {
- &local_name!("align") => AttrValue::from_dimension(value.into()),
- &local_name!("color") => AttrValue::from_legacy_color(value.into()),
- &local_name!("width") => AttrValue::from_dimension(value.into()),
+ match *name {
+ local_name!("align") => AttrValue::from_dimension(value.into()),
+ local_name!("color") => AttrValue::from_legacy_color(value.into()),
+ local_name!("width") => AttrValue::from_dimension(value.into()),
_ => self
.super_type()
.unwrap()