From c738087f10cc7de449c024066be5fc3343daef02 Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Fri, 12 Apr 2024 11:58:41 +0200 Subject: [PATCH] chore(tasks): comment formatting (#7583) --- crates/tasks/src/metrics.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/tasks/src/metrics.rs b/crates/tasks/src/metrics.rs index e619db275..127783cf0 100644 --- a/crates/tasks/src/metrics.rs +++ b/crates/tasks/src/metrics.rs @@ -20,12 +20,11 @@ pub struct TaskExecutorMetrics { impl TaskExecutorMetrics { /// Increments the counter for spawned critical tasks. - pub(crate) fn inc_critical_tasks(&self) { self.critical_tasks.increment(1); } - /// Increments the counter for spawned regular tasks. + /// Increments the counter for spawned regular tasks. pub(crate) fn inc_regular_tasks(&self) { self.regular_tasks.increment(1); } @@ -49,7 +48,6 @@ impl IncCounterOnDrop { impl Drop for IncCounterOnDrop { /// Increment the counter when the instance is dropped. - fn drop(&mut self) { self.0.increment(1); }