Push word regex into reader #11
GitHub Actions / clippy
succeeded
Jul 23, 2023 in 0s
clippy
1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.71.0 (8ede3aae2 2023-07-12)
- cargo 1.71.0 (cfd3bbd8f 2023-06-08)
- clippy 0.1.71 (8ede3aa 2023-07-12)
Annotations
Check warning on line 34 in src/words.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/words.rs:34:10
|
34 | .filter_map(|l| l.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/words.rs:32:8
|
32 | Ok(BufReader::new(file)
| ________^
33 | | .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
Loading