Skip to content

Commit be8323f

Browse files
kornelskigitbot
authored and
gitbot
committed
Use faster thread_local! for stdout
1 parent a54fda2 commit be8323f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: std/src/io/stdio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type LocalStream = Arc<Mutex<Vec<u8>>>;
2020

2121
thread_local! {
2222
/// Used by the test crate to capture the output of the print macros and panics.
23-
static OUTPUT_CAPTURE: Cell<Option<LocalStream>> = {
23+
static OUTPUT_CAPTURE: Cell<Option<LocalStream>> = const {
2424
Cell::new(None)
2525
}
2626
}

0 commit comments

Comments
 (0)