2020-10-01 21:54:44 -05:00
|
|
|
error: calling `&mut Mutex::lock` unnecessarily locks an exclusive (mutable) reference
|
|
|
|
--> $DIR/mut_mutex_lock.rs:9:21
|
2020-10-01 20:05:30 -05:00
|
|
|
|
|
2020-10-01 21:54:44 -05:00
|
|
|
LL | let mut value = value_mutex.lock().unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2020-10-01 20:05:30 -05:00
|
|
|
|
|
2020-10-01 21:54:44 -05:00
|
|
|
= note: `-D clippy::mut-mutex-lock` implied by `-D warnings`
|
|
|
|
= help: use `&mut Mutex::get_mut` instead
|
2020-10-01 20:05:30 -05:00
|
|
|
|
2020-10-01 21:54:44 -05:00
|
|
|
error: aborting due to previous error
|
2020-10-01 20:05:30 -05:00
|
|
|
|