fork/rust

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

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

master
673 B17 linesraw
1error: this write lock is used only for reading
2  --> $DIR/readonly_write_lock.rs:16:22
3   |
4LL |         let writer = lock.write().unwrap();
5   |                      ^^^^^^^^^^^^ help: consider using a read lock instead: `lock.read()`
6   |
7   = note: `-D clippy::readonly-write-lock` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::readonly_write_lock)]`
9
10error: this write lock is used only for reading
11  --> $DIR/readonly_write_lock.rs:23:22
12   |
13LL |         let writer = lock.write().unwrap();
14   |                      ^^^^^^^^^^^^ help: consider using a read lock instead: `lock.read()`
15
16error: aborting due to 2 previous errors
17