Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PsychedelicShayna committed Sep 8, 2024
1 parent e3a69ff commit b392f45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ fn checksum(options: &Options, algorithm: &HashAlgorithm) {
}
}

fn checksum_diff(paths: &Vec<String>, print_stats: bool) {
let mut paths = paths.into_iter();
fn checksum_diff(paths: &[String], print_stats: bool) {
let mut paths = paths.iter();

let convert = |path: &String| -> Option<PathBuf> {
Some(PathBuf::from(path))
Expand Down Expand Up @@ -264,7 +264,7 @@ fn checksum_diff(paths: &Vec<String>, print_stats: bool) {
exit(1);
}))
.lines()
.filter_map(Result::ok)
.map_while(Result::ok)
.filter_map(parse_line)
.collect()
};
Expand Down

0 comments on commit b392f45

Please sign in to comment.