From 3f9049f8fc2bdddd3144ecf76f86f0b885de371a Mon Sep 17 00:00:00 2001 From: Y0SH1M4S73R Date: Sun, 9 Jun 2024 20:40:39 -0400 Subject: [PATCH] makes usr-related thread_local initializers const --- src/state/usr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/usr.rs b/src/state/usr.rs index d9c466c..7178e3d 100644 --- a/src/state/usr.rs +++ b/src/state/usr.rs @@ -4,8 +4,8 @@ use dreamluau_proc_macro::map_statics; use meowtonin::{byond_fn, ByondValue}; thread_local! { - static USR: RefCell> = RefCell::new(None); - static USR_STACK: RefCell>> = RefCell::new(vec![]); + static USR: RefCell> = const { RefCell::new(None) }; + static USR_STACK: RefCell>> = const { RefCell::new(vec![]) }; } /// Byondapi does not currently support natively getting `usr` from DM.