Fix clippy::missing-const-for-thread-local

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-05-14 13:06:38 +00:00
1 parent e248bb05d9
commit 5d115ddd6f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ pub struct Manager {
}
thread_local! {
static INDEX: Cell<usize> = 0.into();
static INDEX: Cell<usize> = const { Cell::new(0_usize) };
static HANDLE: RefCell<Handles> = const {
RefCell::new([const { None }; HISTORY])
};