clippy: Fix redundant field names warnings (#31793)

This commit is contained in:
Oluwatobi Sofela 2024-03-21 00:05:29 +01:00 committed by GitHub
parent f55d1d288e
commit 2789e98876
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
97 changed files with 285 additions and 314 deletions

View file

@ -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,
}
}