1
Fork 0

Use faster thread_local! for stdout

This commit is contained in:
Kornel 2025-02-17 17:04:36 +00:00
parent ad566646cf
commit 4742dbc765
No known key found for this signature in database

View file

@ -20,7 +20,7 @@ type LocalStream = Arc<Mutex<Vec<u8>>>;
thread_local! {
/// Used by the test crate to capture the output of the print macros and panics.
static OUTPUT_CAPTURE: Cell<Option<LocalStream>> = {
static OUTPUT_CAPTURE: Cell<Option<LocalStream>> = const {
Cell::new(None)
}
}