Skip to content

Commit

Permalink
add consts to RocketsimWrapper from clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffA233 committed May 24, 2024
1 parent 3b6ed9e commit 56fcc7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sim_wrapper/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ pub struct RocketsimWrapper {

impl RocketsimWrapper {
thread_local!(
static BLUE_SCORE: RwLock<i32> = RwLock::new(0);
static ORANGE_SCORE: RwLock<i32> = RwLock::new(0);
static LAST_GOAL_TICK: RwLock<u64> = RwLock::new(0);
static STATS: RwLock<Vec<(u32, Stats)>> = RwLock::new(Vec::new());
static BLUE_SCORE: RwLock<i32> = const { RwLock::new(0) };
static ORANGE_SCORE: RwLock<i32> = const { RwLock::new(0) };
static LAST_GOAL_TICK: RwLock<u64> = const { RwLock::new(0) };
static STATS: RwLock<Vec<(u32, Stats)>> = const { RwLock::new(Vec::new()) };
);

pub fn new(config: GameConfig) -> Self {
Expand Down

0 comments on commit 56fcc7a

Please sign in to comment.