From 56fcc7affb0f4f5d9abe3629d78c856dffc67c5d Mon Sep 17 00:00:00 2001 From: JeffA233 <63136834+JeffA233@users.noreply.github.com> Date: Fri, 24 May 2024 19:38:40 -0400 Subject: [PATCH] add consts to RocketsimWrapper from clippy --- src/sim_wrapper/wrapper.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sim_wrapper/wrapper.rs b/src/sim_wrapper/wrapper.rs index 3536db6..24fe656 100644 --- a/src/sim_wrapper/wrapper.rs +++ b/src/sim_wrapper/wrapper.rs @@ -49,10 +49,10 @@ pub struct RocketsimWrapper { impl RocketsimWrapper { thread_local!( - static BLUE_SCORE: RwLock = RwLock::new(0); - static ORANGE_SCORE: RwLock = RwLock::new(0); - static LAST_GOAL_TICK: RwLock = RwLock::new(0); - static STATS: RwLock> = RwLock::new(Vec::new()); + static BLUE_SCORE: RwLock = const { RwLock::new(0) }; + static ORANGE_SCORE: RwLock = const { RwLock::new(0) }; + static LAST_GOAL_TICK: RwLock = const { RwLock::new(0) }; + static STATS: RwLock> = const { RwLock::new(Vec::new()) }; ); pub fn new(config: GameConfig) -> Self {