Skip to content

Commit

Permalink
👕 Fix clippy warning
Browse files Browse the repository at this point in the history
- redundant closure
  • Loading branch information
ChanTsune committed Oct 6, 2024
1 parent 2b94865 commit e53f033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/command/commons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ where
let mut out_archive = Archive::write_header(outfile)?;

run_read_entries_mem(input_path, |entry| {
Transform::transform(&mut out_archive, password, entry, |it| processor(it))
Transform::transform(&mut out_archive, password, entry, &mut processor)
})?;

out_archive.finalize()?;
Expand Down Expand Up @@ -644,7 +644,7 @@ where
let mut out_archive = Archive::write_header(outfile)?;

run_read_entries_path(input_path, |entry| {
Transform::transform(&mut out_archive, password, entry, |it| processor(it))
Transform::transform(&mut out_archive, password, entry, &mut processor)
})?;

out_archive.finalize()?;
Expand Down

0 comments on commit e53f033

Please sign in to comment.