]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/mut_mutex_lock.stderr
Rollup merge of #102187 - b-naber:inline-const-source-info, r=eholk
[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