Use faster thread_local! for stdout
This commit is contained in:
parent
ad566646cf
commit
4742dbc765
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ type LocalStream = Arc<Mutex<Vec<u8>>>;
|
||||||
|
|
||||||
thread_local! {
|
thread_local! {
|
||||||
/// Used by the test crate to capture the output of the print macros and panics.
|
/// 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)
|
Cell::new(None)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue