From 075699061a9f6cfc1405df2ddab35d85092fa22f Mon Sep 17 00:00:00 2001 From: Scott Techau Date: Fri, 22 Mar 2024 20:33:09 -0700 Subject: [PATCH] fix: Refactor test time abstractions to make new version of clippy happy --- screeps-async/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screeps-async/src/lib.rs b/screeps-async/src/lib.rs index 93128b8..1085427 100644 --- a/screeps-async/src/lib.rs +++ b/screeps-async/src/lib.rs @@ -148,8 +148,8 @@ mod tests { use std::cell::RefCell; thread_local! { - pub(crate) static GAME_TIME: RefCell = RefCell::new(0); - pub(crate) static TIME_USED: RefCell = RefCell::new(0.0); + pub(crate) static GAME_TIME: RefCell = const { RefCell::new(0) }; + pub(crate) static TIME_USED: RefCell = const { RefCell::new(0.0) }; } pub(super) fn game_time() -> u32 {