We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70de06 commit d8de324Copy full SHA for d8de324
src/lib.rs
@@ -150,7 +150,7 @@ mod lock {
150
static mut LOCK: *mut Mutex<()> = ptr::null_mut();
151
static INIT: Once = Once::new();
152
// Whether this thread is the one that holds the lock
153
- thread_local!(static LOCK_HELD: Cell<bool> = Cell::new(false));
+ thread_local!(static LOCK_HELD: Cell<bool> = const { Cell::new(false) });
154
155
impl Drop for LockGuard {
156
fn drop(&mut self) {
0 commit comments