mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 10:07:30 +00:00
11 lines
364 B
Plaintext
11 lines
364 B
Plaintext
error: calling `&mut Mutex::lock` unnecessarily locks an exclusive (mutable) reference
|
|
--> $DIR/mut_mutex_lock.rs:11:33
|
|
|
|
|
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
|
|
|