mirror of
https://github.com/rust-lang/futures-rs.git
synced 2026-01-25 03:26:14 +00:00
Use const thread_local
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use std::cell::Cell;
|
||||
use std::fmt;
|
||||
|
||||
std::thread_local!(static ENTERED: Cell<bool> = Cell::new(false));
|
||||
std::thread_local!(static ENTERED: Cell<bool> = const { Cell::new(false) });
|
||||
|
||||
/// Represents an executor context.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user