chore: remove .envrc #242
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / clippy
succeeded
Sep 30, 2023 in 0s
clippy
3 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 3 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.1 (d5c2e9c34 2023-09-13)
- cargo 1.72.1 (103a7ff2e 2023-08-15)
- clippy 0.1.72 (d5c2e9c 2023-09-13)
Annotations
Check warning on line 78 in src/main.rs
github-actions / clippy
`filter_map()` will run forever if the iterator repeatedly produces an `Err`
warning: `filter_map()` will run forever if the iterator repeatedly produces an `Err`
--> src/main.rs:78:26
|
78 | .filter_map(Result::ok)
| ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `map_while(Result::ok)`
|
note: this expression returning a `std::io::Lines` may produce an infinite number of `Err` in case of a read error
--> src/main.rs:76:21
|
76 | / io::BufReader::new(file)
77 | | .lines()
| |________________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok
Check warning on line 72 in src/main.rs
github-actions / clippy
`filter_map()` will run forever if the iterator repeatedly produces an `Err`
warning: `filter_map()` will run forever if the iterator repeatedly produces an `Err`
--> src/main.rs:72:26
|
72 | .filter_map(Result::ok)
| ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `map_while(Result::ok)`
|
note: this expression returning a `std::io::Lines` may produce an infinite number of `Err` in case of a read error
--> src/main.rs:69:21
|
69 | / std::io::stdin()
70 | | .lock()
71 | | .lines()
| |________________________________^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok
= note: `#[warn(clippy::lines_filter_map_ok)]` on by default
Check warning on line 85 in src/test/results.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/test/results.rs:85:45
|
85 | missed_words: calc_missed_words(&test),
| ^^^^^ help: change this to: `test`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
Loading