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() }); } }