From cb197def683277cb7ae1e00f13398b49ac225f75 Mon Sep 17 00:00:00 2001 From: Augusto Hack Date: Fri, 2 Feb 2024 13:29:35 +0100 Subject: [PATCH] docs: transition_to_idle doesn't return boolean (#6320) --- tokio/src/runtime/task/state.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/tokio/src/runtime/task/state.rs b/tokio/src/runtime/task/state.rs index 9f1a8ec5a14..42b239e05bb 100644 --- a/tokio/src/runtime/task/state.rs +++ b/tokio/src/runtime/task/state.rs @@ -141,7 +141,6 @@ impl State { /// Transitions the task from `Running` -> `Idle`. /// - /// Returns `true` if the transition to `Idle` is successful, `false` otherwise. /// The transition to `Idle` fails if the task has been flagged to be /// cancelled. pub(super) fn transition_to_idle(&self) -> TransitionToIdle {