Use const thread_local

This commit is contained in:
Taiki Endo
2025-01-13 01:02:59 +09:00
parent b1bfda0ee4
commit bbaa0e34e4

View File

@@ -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.
///