mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix redundant field names warnings (#31793)
This commit is contained in:
parent
f55d1d288e
commit
2789e98876
97 changed files with 285 additions and 314 deletions
|
@ -134,7 +134,7 @@ unsafe extern "C" fn off_thread_compilation_callback(
|
|||
code,
|
||||
url: final_url,
|
||||
external: true,
|
||||
fetch_options: fetch_options,
|
||||
fetch_options,
|
||||
type_: ScriptType::Classic,
|
||||
})
|
||||
};
|
||||
|
@ -276,7 +276,7 @@ impl ScriptOrigin {
|
|||
) -> ScriptOrigin {
|
||||
ScriptOrigin {
|
||||
code: SourceCode::Text(text),
|
||||
url: url,
|
||||
url,
|
||||
external: false,
|
||||
fetch_options,
|
||||
type_,
|
||||
|
@ -291,7 +291,7 @@ impl ScriptOrigin {
|
|||
) -> ScriptOrigin {
|
||||
ScriptOrigin {
|
||||
code: SourceCode::Text(text),
|
||||
url: url,
|
||||
url,
|
||||
external: true,
|
||||
fetch_options,
|
||||
type_,
|
||||
|
@ -549,8 +549,8 @@ fn fetch_a_classic_script(
|
|||
|
||||
let context = Arc::new(Mutex::new(ClassicContext {
|
||||
elem: Trusted::new(script),
|
||||
kind: kind,
|
||||
character_encoding: character_encoding,
|
||||
kind,
|
||||
character_encoding,
|
||||
data: vec![],
|
||||
metadata: None,
|
||||
url: url.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue