contentauth / c2pa-attacks

Content Authenticity Security Tool
Apache License 2.0
5 stars 4 forks source link

Address clippy issue regarding flatten usage #139

Closed puhley closed 8 months ago

puhley commented 8 months ago

Changes in this pull request

This is to address the following clippy error:

note: this expression returning a `std::io::Lines` may produce an infinite number of `Err` in case of a read error
   --> src/main.rs:503:27
    |
503 |         for mal_string in lines.flatten() {
    |                           ^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok

Checklist

codecov-commenter commented 8 months ago

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 68.52%. Comparing base (c310429) to head (1901fb2).

Files Patch % Lines
src/main.rs 0.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #139 +/- ## ======================================= Coverage 68.52% 68.52% ======================================= Files 2 2 Lines 502 502 ======================================= Hits 344 344 Misses 158 158 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.