mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
442 B
Plaintext
12 lines
442 B
Plaintext
error: calling `&mut Mutex::lock` unnecessarily locks an exclusive (mutable) reference
|
|
--> $DIR/mut_mutex_lock.rs:10: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`
|
|
= help: to override `-D warnings` add `#[allow(clippy::mut_mutex_lock)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|