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 {