Skip to content

Commit

Permalink
fix: Refactor test time abstractions to make new version of clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbot95 committed Mar 23, 2024
1 parent 49f468e commit 0756990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions screeps-async/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ mod tests {
use std::cell::RefCell;

thread_local! {
pub(crate) static GAME_TIME: RefCell<u32> = RefCell::new(0);
pub(crate) static TIME_USED: RefCell<f64> = RefCell::new(0.0);
pub(crate) static GAME_TIME: RefCell<u32> = const { RefCell::new(0) };
pub(crate) static TIME_USED: RefCell<f64> = const { RefCell::new(0.0) };
}

pub(super) fn game_time() -> u32 {
Expand Down

0 comments on commit 0756990

Please sign in to comment.