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:
@@ -1459,7 +1459,7 @@ impl HTMLMediaElement {
|
||||
global.core_resource_thread(),
|
||||
));
|
||||
let listener =
|
||||
HTMLMediaElementFetchListener::new(self, request.id, url.clone(), offset.unwrap_or(0));
|
||||
HTMLMediaElementFetchListener::new(self, request.id, url, offset.unwrap_or(0));
|
||||
|
||||
self.owner_document().fetch_background(request, listener);
|
||||
|
||||
@@ -3646,7 +3646,7 @@ impl HTMLMediaElementFetchContext {
|
||||
is_seekable: false,
|
||||
origin_clean: true,
|
||||
data_source: RefCell::new(BufferedDataSource::new()),
|
||||
fetch_canceller: FetchCanceller::new(request_id, false, core_resource_thread.clone()),
|
||||
fetch_canceller: FetchCanceller::new(request_id, false, core_resource_thread),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user