We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c63593 commit 97da7a1Copy full SHA for 97da7a1
src/driver.rs
@@ -140,7 +140,7 @@ pub fn block_on<T>(future: impl Future<Output = T>) -> T {
140
static CACHE: RefCell<(Parker, Waker, Arc<AtomicBool>)> = RefCell::new(parker_and_waker());
141
142
// Indicates that the current thread is polling I/O, but not necessarily blocked on it.
143
- static IO_POLLING: Cell<bool> = Cell::new(false);
+ static IO_POLLING: Cell<bool> = const { Cell::new(false) };
144
}
145
146
struct BlockOnWaker {
0 commit comments