瀏覽代碼

Update tasks.rs (#2703)

Matt Hunzinger 11 月之前
父節點
當前提交
beeee0dda1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();