diff --git a/elfo-core/src/memory_tracker.rs b/elfo-core/src/memory_tracker.rs index f456e8f9..3b1b99cf 100644 --- a/elfo-core/src/memory_tracker.rs +++ b/elfo-core/src/memory_tracker.rs @@ -204,7 +204,9 @@ mod mock_stats { use super::MemoryStats; thread_local! { - static STATS: Cell> = Cell::new(Err("not exists")); + static STATS: Cell> = const { + Cell::new(Err("not exists")) + }; } pub(super) fn get() -> Result {