diff --git a/tests/flags.rs b/tests/flags.rs index c244df17..53d84a22 100644 --- a/tests/flags.rs +++ b/tests/flags.rs @@ -114,7 +114,7 @@ fn verbose_mode() { // initialise it with Some(sender) only on threads spawned within // our test. thread_local! { - static VERBOSE_LOGS: RefCell>> = RefCell::new(None); + static VERBOSE_LOGS: RefCell>> = const { RefCell::new(None) }; } struct LogTester;