more restored

This commit is contained in:
Sebastian Moser
2026-10-23 11:43:55 +02:00
parent 6bd98e7c80
commit 9078b108a6
5 changed files with 7 additions and 7 deletions

View File

@@ -80,7 +80,7 @@ pub fn get_global_mize() -> MizeResult<Mize> {
/// Set the global Mize instance.
pub fn set_global_mize(mize: Mize) -> MizeResult<()> {
let arc = Arc::new(Mutex::new(mize));
if let Errr(_) = GLOBAL_MIZE.set(arc) {
if let Err(_) = GLOBAL_MIZE.set(arc) {
let a = GLOBAL_MIZE.get().unwrap();
let mut b = a.lock();
*b = mize;