Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clippy: ledger-tool lints (solana-labs#34640)
warning: `flatten()` will run forever if the iterator repeatedly produces an `Err` --> ledger-tool/src/main.rs:2649:39 | 2649 | for line in f.lines().flatten() { | ^^^^^^^^^ 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 --> ledger-tool/src/main.rs:2649:29 | 2649 | for line in f.lines().flatten() { | ^^^^^^^^^ = 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 warning: `solana-ledger-tool` (bin "solana-ledger-tool" test) generated 1 warning
- Loading branch information