mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
Everywhere: Remove instances of clippy::redundant-clone (#43212)
This change fixes all instances where [`clippy::redundant-clone`](https://rust-lang.github.io/rust-clippy/master/index.html?groups=complexity%2Ccorrectness%2Cnursery%2Csuspicious&levels=allow#redundant_clone) would trigger. It's allowed by default I've also changed the lint to warn-by-default for servo. Testing: Covered by WPT --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
@@ -424,7 +424,7 @@ impl FetchResponseListener for ClassicContext {
|
||||
// sourceText, settingsObject, response's URL, options, mutedErrors, and url.
|
||||
let script = global.create_a_classic_script(
|
||||
source_text,
|
||||
final_url.clone(),
|
||||
final_url,
|
||||
self.fetch_options.clone(),
|
||||
ErrorReporting::from(muted_errors),
|
||||
Some(IntroductionType::SRC_SCRIPT),
|
||||
@@ -851,7 +851,7 @@ impl HTMLScriptElement {
|
||||
|
||||
// Step 31.11. Fetch an external module script graph.
|
||||
fetch_an_external_module_script(
|
||||
url.clone(),
|
||||
url,
|
||||
ModuleOwner::Window(Trusted::new(self)),
|
||||
options,
|
||||
can_gc,
|
||||
@@ -920,7 +920,7 @@ impl HTMLScriptElement {
|
||||
fetch_inline_module_script(
|
||||
ModuleOwner::Window(Trusted::new(self)),
|
||||
text_rc,
|
||||
base_url.clone(),
|
||||
base_url,
|
||||
options,
|
||||
self.line_number as u32,
|
||||
can_gc,
|
||||
|
||||
Reference in New Issue
Block a user