From b766c042bb89c81c6b02b6720f0d6c690634dd6d Mon Sep 17 00:00:00 2001 From: Jacobtread Date: Wed, 6 Dec 2023 15:21:09 +1300 Subject: [PATCH] Added note for map init const safe todo --- src/utils/components.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/components.rs b/src/utils/components.rs index 6dce259..6972c05 100644 --- a/src/utils/components.rs +++ b/src/utils/components.rs @@ -15,6 +15,9 @@ static COMPONENT_NAMES: &[(u16, &str)] = &[ (game_reporting::COMPONENT, "GameReporting"), (user_sessions::COMPONENT, "UserSessions"), ]; + +// TODO: Option can be replaced with static init after https://github.com/rust-lang/rust/issues/102575 is stablized +// map creation becomes const stable static mut COMMANDS: Option> = None; static mut NOTIFICATIONS: Option> = None;