fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
440 B11 linesraw
1error: calling `&mut Mutex::lock` unnecessarily locks an exclusive (mutable) reference
2  --> $DIR/mut_mutex_lock.rs:10:33
3   |
4LL |     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   = help: to override `-D warnings` add `#[allow(clippy::mut_mutex_lock)]`
9
10error: aborting due to previous error
11