Skip to content

Commit

Permalink
Use const thread_local
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 12, 2025
1 parent b1bfda0 commit bbaa0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-executor/src/enter.rs
Original file line number Diff line number Diff line change
@@ -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.
///
Expand Down

0 comments on commit bbaa0e3

Please sign in to comment.