2023-07-31 16:53:53 -05:00
|
|
|
error: this write lock is used only for reading
|
|
|
|
--> $DIR/readonly_write_lock.rs:16:22
|
|
|
|
|
|
|
|
|
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 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::readonly_write_lock)]`
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
error: this write lock is used only for reading
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/readonly_write_lock.rs:23:22
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let writer = lock.write().unwrap();
|
|
|
|
| ^^^^^^^^^^^^ help: consider using a read lock instead: `lock.read()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|