2020-10-28 22:36:07 +00:00
|
|
|
error: calling `&mut Mutex::lock` unnecessarily locks an exclusive (mutable) reference
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/mut_mutex_lock.rs:10:33
|
2020-10-28 22:36:07 +00: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`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::mut_mutex_lock)]`
|
2020-10-28 22:36:07 +00:00
|
|
|
|
2024-07-18 12:38:05 +00:00
|
|
|
error: calling `&mut Mutex::lock` unnecessarily locks an exclusive (mutable) reference
|
|
|
|
--> tests/ui/mut_mutex_lock.rs:15:43
|
|
|
|
|
|
|
|
|
LL | let mut value = mut_ref_mut_ref_mutex.lock().unwrap();
|
|
|
|
| ^^^^ help: change this to: `get_mut`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2020-10-28 22:36:07 +00:00
|
|
|
|