diff --git a/elfo-utils/src/time.rs b/elfo-utils/src/time.rs index 95c52133..23e644c2 100644 --- a/elfo-utils/src/time.rs +++ b/elfo-utils/src/time.rs @@ -73,10 +73,12 @@ pub use mock::*; #[cfg(any(test, feature = "test-util"))] mod mock { + use std::cell::RefCell; + use super::*; thread_local! { - pub(super) static CLOCK: std::cell::RefCell> = std::cell::RefCell::new(None); + pub(super) static CLOCK: RefCell> = const{ RefCell::new(None) }; } /// Mocks `Instant`, see [`InstantMock`].