mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
a50d069d1c
commit
de664f05e3
1 changed files with 1 additions and 0 deletions
|
|
@ -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() });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue