From 12bdf9d4d5384a0e0bd1e7f31721bfcb75213034 Mon Sep 17 00:00:00 2001 From: dahlend Date: Wed, 4 Dec 2024 10:22:00 -0800 Subject: [PATCH] temp Fix #162 --- src/kete_core/src/spice/pck.rs | 2 ++ src/kete_core/src/spice/spk.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/kete_core/src/spice/pck.rs b/src/kete_core/src/spice/pck.rs index aa02139..0928821 100644 --- a/src/kete_core/src/spice/pck.rs +++ b/src/kete_core/src/spice/pck.rs @@ -94,10 +94,12 @@ pub fn get_pck_singleton() -> &'static PckSingleton { files.reset(); let singleton: PckSingleton = ShardedLock::new(files); // Store it to the static var, i.e. initialize it + #[allow(static_mut_refs)] let _ = SINGLETON.write(singleton); }); // Now we give out a shared reference to the data, which is safe to use concurrently. + #[allow(static_mut_refs)] SINGLETON.assume_init_ref() } } diff --git a/src/kete_core/src/spice/spk.rs b/src/kete_core/src/spice/spk.rs index 37ff4b5..59715fa 100644 --- a/src/kete_core/src/spice/spk.rs +++ b/src/kete_core/src/spice/spk.rs @@ -324,11 +324,13 @@ pub fn get_spk_singleton() -> &'static SpkSingleton { segments.reset(); let singleton: SpkSingleton = ShardedLock::new(segments); // Store it to the static var, i.e. initialize it + #[allow(static_mut_refs)] let _ = SINGLETON.write(singleton); }); // Now we give out a shared reference to the data, which is safe to use // concurrently. + #[allow(static_mut_refs)] SINGLETON.assume_init_ref() } }