rusticl/platform: silence static_mut_refs warning

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12288
Reviewed-by: @LingMan
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32723>
This commit is contained in:
Karol Herbst 2024-12-19 16:13:51 +01:00 committed by Marge Bot
parent a50d069d1c
commit de664f05e3

View file

@ -167,6 +167,7 @@ impl Platform {
pub fn init_once() {
PLATFORM_ENV_ONCE.call_once(load_env);
// SAFETY: no concurrent static mut access due to std::Once
#[allow(static_mut_refs)]
PLATFORM_ONCE.call_once(|| unsafe { PLATFORM.init() });
}
}