aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/stylesheet_loader.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/stylesheet_loader.rs
parentf55d1d288e4ede7da3090e853a0a0f6aab42c113 (diff)
downloadservo-2789e9887666a05695778bd9d822616985b40dbc.tar.gz
servo-2789e9887666a05695778bd9d822616985b40dbc.zip
clippy: Fix redundant field names warnings (#31793)
Diffstat (limited to 'components/script/stylesheet_loader.rs')
-rw-r--r--components/script/stylesheet_loader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs
index 8ba0760840f..79ccae3019b 100644
--- a/components/script/stylesheet_loader.rs
+++ b/components/script/stylesheet_loader.rs
@@ -277,7 +277,7 @@ impl<'a> StylesheetLoader<'a> {
.map(HTMLLinkElement::get_request_generation_id);
let context = ::std::sync::Arc::new(Mutex::new(StylesheetContext {
elem: Trusted::new(self.elem),
- source: source,
+ source,
url: url.clone(),
metadata: None,
data: vec![],
@@ -381,7 +381,7 @@ impl<'a> StyleStylesheetLoader for StylesheetLoader<'a> {
context.url_data.clone(),
context.quirks_mode,
),
- media: media,
+ media,
shared_lock: lock.clone(),
disabled: AtomicBool::new(false),
});