Update tasks.rs (#2703)

This commit is contained in:
Matt Hunzinger 2024-07-25 13:37:49 -04:00 committed by GitHub
parent 163586c3ff
commit beeee0dda1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -248,7 +248,7 @@ impl Runtime {
}
pub(crate) fn handle_task_wakeup(&self, id: Task) -> Poll<()> {
#[cfg(feature = "debug_assertions")]
#[cfg(debug_assertions)]
{
// Ensure we are currently inside a `Runtime`.
Runtime::current().unwrap();