lazy_static! {
static ref MY_GLOBAL: Mutex<usize> = Mutex::new(100);
}
MY_GLOBAL.lock().unwrap() += 1;
This code gives me these errors:
cannot use `+=` on type `MutexGuard<'_, usize>`
cannot assign to this expression
How do I mutate MY_GLOBAL
?