Skip to content

Commit 97da7a1

Browse files
committed
Use const thread_local
1 parent 1c63593 commit 97da7a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pub fn block_on<T>(future: impl Future<Output = T>) -> T {
140140
static CACHE: RefCell<(Parker, Waker, Arc<AtomicBool>)> = RefCell::new(parker_and_waker());
141141

142142
// Indicates that the current thread is polling I/O, but not necessarily blocked on it.
143-
static IO_POLLING: Cell<bool> = Cell::new(false);
143+
static IO_POLLING: Cell<bool> = const { Cell::new(false) };
144144
}
145145

146146
struct BlockOnWaker {

0 commit comments

Comments
 (0)