diff --git a/futures-executor/src/enter.rs b/futures-executor/src/enter.rs index b0e43e059..46e1bd147 100644 --- a/futures-executor/src/enter.rs +++ b/futures-executor/src/enter.rs @@ -1,7 +1,7 @@ use std::cell::Cell; use std::fmt; -std::thread_local!(static ENTERED: Cell = Cell::new(false)); +std::thread_local!(static ENTERED: Cell = const { Cell::new(false) }); /// Represents an executor context. ///