summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/mut_mutex_lock.stderr
blob: 21c1b3486cacf5f2a23a90c16e02e268b8ff0f6b (plain)
1
2
3
4
5
6
7
8
9
10
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