Skip to content

Commit

Permalink
makes usr-related thread_local initializers const
Browse files Browse the repository at this point in the history
  • Loading branch information
Y0SH1M4S73R committed Jun 10, 2024
1 parent 23f0582 commit 3f9049f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state/usr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use dreamluau_proc_macro::map_statics;
use meowtonin::{byond_fn, ByondValue};

thread_local! {
static USR: RefCell<Option<ByondValue>> = RefCell::new(None);
static USR_STACK: RefCell<Vec<Option<ByondValue>>> = RefCell::new(vec![]);
static USR: RefCell<Option<ByondValue>> = const { RefCell::new(None) };
static USR_STACK: RefCell<Vec<Option<ByondValue>>> = const { RefCell::new(vec![]) };
}

/// Byondapi does not currently support natively getting `usr` from DM.
Expand Down

0 comments on commit 3f9049f

Please sign in to comment.