chore(tasks): comment formatting (#7583)

This commit is contained in:
Oliver Nordbjerg
2024-04-12 11:58:41 +02:00
committed by GitHub
parent 210158fba8
commit c738087f10

View File

@ -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);
}