1 2 3 4 5 6 7 8 9 10 11 12 13
// TODO: Find a better way to handle the errors. // This works for now because we run everything on the main thread static mut HAS_ERR_VAR: bool = false; pub fn has_err() -> bool { unsafe { HAS_ERR_VAR.clone() } } pub fn set_err_true() { unsafe { HAS_ERR_VAR = true; } }