diff --git a/commons/src/output/warn_later.rs b/commons/src/output/warn_later.rs index 37f55619..2e4b809e 100644 --- a/commons/src/output/warn_later.rs +++ b/commons/src/output/warn_later.rs @@ -8,7 +8,7 @@ use std::thread::ThreadId; pub type PhantomUnsync = PhantomData>; -thread_local!(static WARN_LATER: RefCell>> = RefCell::new(None)); +thread_local!(static WARN_LATER: RefCell>> = const { RefCell::new(None) }); /// Queue a warning for later ///