Skip to content

Commit f200980

Browse files
committed
digital_io: test: make thread local storage init const
This was suggested by cargo clippy. Signed-off-by: Leonard Göhrs <[email protected]>
1 parent 740ffac commit f200980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/digital_io/gpio/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use anyhow::Result;
2626
use async_std::sync::Arc;
2727

2828
std::thread_local! {
29-
static LINES: RefCell<Vec<(String, Arc<AtomicU8>)>> = RefCell::new(Vec::new());
29+
static LINES: RefCell<Vec<(String, Arc<AtomicU8>)>> = const { RefCell::new(Vec::new()) };
3030
}
3131

3232
pub struct LineHandle {

0 commit comments

Comments
 (0)