aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlselectelement.rs
diff options
context:
space:
mode:
authorAarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com>2024-03-25 16:58:12 +0530
committerGitHub <noreply@github.com>2024-03-25 11:28:12 +0000
commitbd39e03eeb3d369e8189135326c733bbe5a3bb10 (patch)
tree32bb57b214bed8890d359701ef326f7231255eff /components/script/dom/htmlselectelement.rs
parent9a76dd9325794346163e858831abb97de4b41e41 (diff)
downloadservo-bd39e03eeb3d369e8189135326c733bbe5a3bb10.tar.gz
servo-bd39e03eeb3d369e8189135326c733bbe5a3bb10.zip
changed `match` to 'matches!' (#31850)
Diffstat (limited to 'components/script/dom/htmlselectelement.rs')
-rwxr-xr-xcomponents/script/dom/htmlselectelement.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmlselectelement.rs b/components/script/dom/htmlselectelement.rs
index a3afab30c6d..8f4b8785c8e 100755
--- a/components/script/dom/htmlselectelement.rs
+++ b/components/script/dom/htmlselectelement.rs
@@ -419,12 +419,12 @@ impl VirtualMethods for HTMLSelectElement {
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) {
self.super_type().unwrap().attribute_mutated(attr, mutation);
- match attr.local_name() {
- &local_name!("required") => {
+ match *attr.local_name() {
+ local_name!("required") => {
self.validity_state()
.perform_validation_and_update(ValidationFlags::VALUE_MISSING);
},
- &local_name!("disabled") => {
+ local_name!("disabled") => {
let el = self.upcast::<Element>();
match mutation {
AttributeMutation::Set(_) => {
@@ -441,7 +441,7 @@ impl VirtualMethods for HTMLSelectElement {
self.validity_state()
.perform_validation_and_update(ValidationFlags::VALUE_MISSING);
},
- &local_name!("form") => {
+ local_name!("form") => {
self.form_attribute_mutated(mutation);
},
_ => {},