Răsfoiți Sursa

Update tasks.rs (#2703)

Matt Hunzinger 11 luni în urmă
părinte
comite
beeee0dda1
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      packages/core/src/tasks.rs

+ 1 - 1
packages/core/src/tasks.rs

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