2020-10-28 17:36:07 -05:00
|
|
|
error: calling `&mut Mutex::lock` unnecessarily locks an exclusive (mutable) reference
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/mut_mutex_lock.rs:10:33
|
2020-10-28 17:36:07 -05:00
|
|
|
|
|
|
|
|
LL | let mut value = value_mutex.lock().unwrap();
|
|
|
|
| ^^^^ help: change this to: `get_mut`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::mut-mutex-lock` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|