Skip to content

Commit

Permalink
Format file groups as lists
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-fedotov committed Aug 5, 2024
1 parent 06bb9f7 commit f33941e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/output_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl OutputFormat {

pub fn print_file_path_with_size(file: &FileInfo) {
println!(
"{}: {}",
"- {}: {}",
file.path
.display()
.to_string()
Expand Down
2 changes: 0 additions & 2 deletions src/results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,11 @@ impl AnalysisResults {
);

if !self.duplicate_groups.is_empty() {
println!();
for (index, (_hash, group)) in self.duplicate_groups.iter().enumerate() {
println!("Group {}:", index + 1);
for file in group {
print_file_path_with_size(file)
}
println!();
}
} else {
println!("None found!");
Expand Down

0 comments on commit f33941e

Please sign in to comment.