cleanup static mut warning in hosted mode

This commit is contained in:
bunnie 2024-12-02 18:54:44 +08:00
parent e4e6db8bc9
commit 2ace34abee

View file

@ -57,9 +57,9 @@ fn flashmem() -> &'static mut FlashSingleton {
} }
let flashmem = FlashSingleton { memory, disk }; let flashmem = FlashSingleton { memory, disk };
SINGLETON.write(flashmem); (&mut *(&raw mut SINGLETON)).write(flashmem);
}); });
SINGLETON.assume_init_mut() (&mut *(&raw mut SINGLETON)).assume_init_mut()
} }
} }