mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
cleanup static mut warning in hosted mode
This commit is contained in:
parent
e4e6db8bc9
commit
2ace34abee
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue