mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix mem_replace_with_default warnings (#31921)
This commit is contained in:
parent
7100465d1a
commit
66ad795014
7 changed files with 9 additions and 22 deletions
|
@ -106,7 +106,7 @@ unsafe extern "C" fn off_thread_compilation_callback(
|
|||
let final_url = context.final_url.clone();
|
||||
let script_element = context.script_element.clone();
|
||||
let script_kind = context.script_kind;
|
||||
let script = replace(&mut context.script_text, String::new());
|
||||
let script = std::mem::take(&mut context.script_text);
|
||||
let fetch_options = context.fetch_options.clone();
|
||||
|
||||
// Continue with <https://html.spec.whatwg.org/multipage/#fetch-a-classic-script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue