Fix build warnings #31
kemitix
commented 2024-03-20 16:05:36 +00:00
Owner
```
Fixed src/file/env.rs (1 fix)
warning: `flatten()` will run forever if the iterator repeatedly produces an `Err`
--> src/file/read.rs:10:32
|
10 | for line in reader.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
--> src/file/read.rs:10:17
|
10 | for line in reader.lines().flatten() {
| ^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok
= note: `-D clippy::lines-filter-map-ok` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::lines_filter_map_ok)]`
warning: `podal` (lib) generated 1 warning
warning: `podal` (lib test) generated 1 warning (1 duplicate)
```
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?