refactor: no need for into_iter

This commit is contained in:
beeb
2023-01-08 13:24:08 +01:00
parent 5eba7cdc30
commit 6087abe960

View File

@@ -58,8 +58,8 @@ pub fn print(duplicates: Vec<File>, opts: &Params) {
.or_insert_with(|| vec![file]);
});
dup_index.into_iter().for_each(|(_, group)| {
group.into_iter().for_each(|file| {
dup_index.iter().for_each(|(_, group)| {
group.iter().for_each(|file| {
println!(
"| {0: <16} | {1: <35} | {2: <16} | {3: <32} |",
file.hash.red(),