aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/nodelist.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-21 00:05:29 +0100
committerGitHub <noreply@github.com>2024-03-20 23:05:29 +0000
commit2789e9887666a05695778bd9d822616985b40dbc (patch)
tree69400ac55fd84db0ec60e69d71d17f9e6d221e99 /components/script/dom/nodelist.rs
parentf55d1d288e4ede7da3090e853a0a0f6aab42c113 (diff)
downloadservo-2789e9887666a05695778bd9d822616985b40dbc.tar.gz
servo-2789e9887666a05695778bd9d822616985b40dbc.zip
clippy: Fix redundant field names warnings (#31793)
Diffstat (limited to 'components/script/dom/nodelist.rs')
-rw-r--r--components/script/dom/nodelist.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/nodelist.rs b/components/script/dom/nodelist.rs
index 695a7a9f336..5514b9afd49 100644
--- a/components/script/dom/nodelist.rs
+++ b/components/script/dom/nodelist.rs
@@ -40,7 +40,7 @@ impl NodeList {
pub fn new_inherited(list_type: NodeListType) -> NodeList {
NodeList {
reflector_: Reflector::new(),
- list_type: list_type,
+ list_type,
}
}
@@ -402,8 +402,8 @@ impl RadioList {
pub fn new(form: &HTMLFormElement, mode: RadioListMode, name: Atom) -> RadioList {
RadioList {
form: Dom::from_ref(form),
- mode: mode,
- name: name,
+ mode,
+ name,
}
}
@@ -427,7 +427,7 @@ impl ElementsByNameList {
pub fn new(document: &Document, name: DOMString) -> ElementsByNameList {
ElementsByNameList {
document: Dom::from_ref(document),
- name: name,
+ name,
}
}