mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix some clippy problems in components/script
(#31778)
* fix clippy problems in stylesheet * fix clippy problems in task_manager * fix clippy problems in task_queue * fix clippy problems in task_queue * fix clippy problems in file_reading * fix clippy problems in dom_manipulation * fix clippy problems in gamepad * fix clippy problems in networking * fix clippy problems in performance * fix clippy problems in port_message * fix clippy problems in port_message * fix clippy problems in timer * fix clippy problems in stylesheet * fix clippy problems * fix clippy problems * fix clippy problems
This commit is contained in:
parent
3651b650c4
commit
058319aa0b
12 changed files with 18 additions and 19 deletions
|
@ -194,7 +194,7 @@ impl TaskManager {
|
|||
|
||||
pub fn task_canceller(&self, name: TaskSourceName) -> TaskCanceller {
|
||||
let mut flags = self.task_cancellers.borrow_mut();
|
||||
let cancel_flag = flags.entry(name).or_insert(Default::default());
|
||||
let cancel_flag = flags.entry(name).or_default();
|
||||
TaskCanceller {
|
||||
cancelled: cancel_flag.clone(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue