From de664f05e3d2508a107a3e952bf241734af08369 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 19 Dec 2024 16:13:51 +0100 Subject: [PATCH] rusticl/platform: silence static_mut_refs warning Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12288 Reviewed-by: @LingMan Part-of: --- src/gallium/frontends/rusticl/core/platform.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/rusticl/core/platform.rs b/src/gallium/frontends/rusticl/core/platform.rs index cea1bf0267b..42ce8ccf09b 100644 --- a/src/gallium/frontends/rusticl/core/platform.rs +++ b/src/gallium/frontends/rusticl/core/platform.rs @@ -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() }); } }