aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_manager.rs
diff options
context:
space:
mode:
authorRosemary Ajayi <okhuomonajayi54@gmail.com>2024-03-20 18:41:07 +0000
committerGitHub <noreply@github.com>2024-03-20 18:41:07 +0000
commit058319aa0b9dbf1916dd87f27171bccd051be3e3 (patch)
tree0f3ba0d1322b8ac378fb37805f7720f00280625e /components/script/task_manager.rs
parent3651b650c48ba8cf1b8f00f4be9705ac11b68a8c (diff)
downloadservo-058319aa0b9dbf1916dd87f27171bccd051be3e3.tar.gz
servo-058319aa0b9dbf1916dd87f27171bccd051be3e3.zip
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
Diffstat (limited to 'components/script/task_manager.rs')
-rw-r--r--components/script/task_manager.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/task_manager.rs b/components/script/task_manager.rs
index a732f8d5dda..d3671f682d2 100644
--- a/components/script/task_manager.rs
+++ b/components/script/task_manager.rs
@@ -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(),
}