aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/serviceworkerregistration.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/serviceworkerregistration.rs
parentf55d1d288e4ede7da3090e853a0a0f6aab42c113 (diff)
downloadservo-2789e9887666a05695778bd9d822616985b40dbc.tar.gz
servo-2789e9887666a05695778bd9d822616985b40dbc.zip
clippy: Fix redundant field names warnings (#31793)
Diffstat (limited to 'components/script/dom/serviceworkerregistration.rs')
-rw-r--r--components/script/dom/serviceworkerregistration.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/serviceworkerregistration.rs b/components/script/dom/serviceworkerregistration.rs
index e829e0b68e5..481ff3aa965 100644
--- a/components/script/dom/serviceworkerregistration.rs
+++ b/components/script/dom/serviceworkerregistration.rs
@@ -52,7 +52,7 @@ impl ServiceWorkerRegistration {
installing: DomRefCell::new(None),
waiting: DomRefCell::new(None),
navigation_preload: MutNullableDom::new(None),
- scope: scope,
+ scope,
navigation_preload_enabled: Cell::new(false),
navigation_preload_header_value: DomRefCell::new(None),
update_via_cache: ServiceWorkerUpdateViaCache::Imports,
@@ -121,11 +121,11 @@ impl ServiceWorkerRegistration {
let devtools_chan = global.devtools_chan().cloned();
let init = prepare_workerscope_init(global, None, None);
ScopeThings {
- script_url: script_url,
- init: init,
- worker_load_origin: worker_load_origin,
- devtools_chan: devtools_chan,
- worker_id: worker_id,
+ script_url,
+ init,
+ worker_load_origin,
+ devtools_chan,
+ worker_id,
}
}