2023-07-31 21:53:53 +00:00
|
|
|
error: this write lock is used only for reading
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/readonly_write_lock.rs:16:22
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let writer = lock.write().unwrap();
|
|
|
|
| ^^^^^^^^^^^^ help: consider using a read lock instead: `lock.read()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::readonly-write-lock` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::readonly_write_lock)]`
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
error: this write lock is used only for reading
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/readonly_write_lock.rs:23:22
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let writer = lock.write().unwrap();
|
|
|
|
| ^^^^^^^^^^^^ help: consider using a read lock instead: `lock.read()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|