mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy fixes regarding clone_from (#32482)
This commit is contained in:
parent
fd472ebd0e
commit
0a641816bf
12 changed files with 35 additions and 19 deletions
|
@ -161,7 +161,7 @@ pub fn Fetch(
|
|||
let timing_type = request.timing_type();
|
||||
|
||||
let mut request_init = request_init_from_request(request);
|
||||
request_init.csp_list = global.get_csp_list().clone();
|
||||
request_init.csp_list.clone_from(&global.get_csp_list());
|
||||
|
||||
// Step 3
|
||||
if global.downcast::<ServiceWorkerGlobalScope>().is_some() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue