]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/mut_mutex_lock.stderr
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / tools / clippy / tests / ui / mut_mutex_lock.stderr
1 error: calling `&mut Mutex::lock` unnecessarily locks an exclusive (mutable) reference
2   --> $DIR/mut_mutex_lock.rs:11:33
3    |
4 LL |     let mut value = value_mutex.lock().unwrap();
5    |                                 ^^^^ help: change this to: `get_mut`
6    |
7    = note: `-D clippy::mut-mutex-lock` implied by `-D warnings`
8
9 error: aborting due to previous error
10