Skip to content

1.3.0

1.3.0 #229

GitHub Actions / clippy succeeded Sep 29, 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 74 in src/main.rs

See this annotation in the file changed.

@github-actions 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:74:26
   |
74 |                         .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:72:21
   |
72 | /                     io::BufReader::new(file)
73 | |                         .lines()
   | |________________________________^
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok

Check warning on line 68 in src/main.rs

See this annotation in the file changed.

@github-actions 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:68:26
   |
68 |                         .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:65:21
   |
65 | /                     std::io::stdin()
66 | |                         .lock()
67 | |                         .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

See this annotation in the file changed.

@github-actions 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