Skip to content

Commit bbaa0e3

Browse files
committed
Use const thread_local
1 parent b1bfda0 commit bbaa0e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futures-executor/src/enter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::cell::Cell;
22
use std::fmt;
33

4-
std::thread_local!(static ENTERED: Cell<bool> = Cell::new(false));
4+
std::thread_local!(static ENTERED: Cell<bool> = const { Cell::new(false) });
55

66
/// Represents an executor context.
77
///

0 commit comments

Comments
 (0)