more restored
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user