mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
clippy: Fix many warnings in components/script
(#31717)
* Fix Several clippy warnings * Fix Build errors * Fix Unused import * Fix requested changes * Fix rustfmt * Minor fixes --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
676f655647
commit
01ca220f83
41 changed files with 200 additions and 212 deletions
|
@ -698,7 +698,7 @@ impl WorkletThread {
|
|||
fn perform_a_worklet_task(&self, worklet_id: WorkletId, task: WorkletTask) {
|
||||
match self.global_scopes.get(&worklet_id) {
|
||||
Some(global) => global.perform_a_worklet_task(task),
|
||||
None => return warn!("No such worklet as {:?}.", worklet_id),
|
||||
None => warn!("No such worklet as {:?}.", worklet_id),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -722,7 +722,7 @@ impl WorkletThread {
|
|||
let global =
|
||||
self.get_worklet_global_scope(pipeline_id, worklet_id, global_type, base_url);
|
||||
self.fetch_and_invoke_a_worklet_script(
|
||||
&*global,
|
||||
&global,
|
||||
pipeline_id,
|
||||
origin,
|
||||
script_url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue