Skip to content

Commit a9b0e56

Browse files
committed
Undo some clippy --fix verbosity
1 parent e22e086 commit a9b0e56

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

collector/src/bin/collector.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,18 +1158,15 @@ fn main_result() -> anyhow::Result<i32> {
11581158
scenarios,
11591159
&mut errors,
11601160
);
1161-
match diffs.len().cmp(&1) {
1162-
Ordering::Equal => {
1163-
let short = out_dir.join("cgann-diff-latest");
1164-
std::fs::copy(&diffs[0], &short).expect("copy to short path");
1165-
eprintln!("Original diff at: {}", diffs[0].to_string_lossy());
1166-
eprintln!("Short path: {}", short.to_string_lossy());
1167-
}
1168-
_ => {
1169-
eprintln!("Diffs:");
1170-
for diff in diffs {
1171-
eprintln!("{}", diff.to_string_lossy());
1172-
}
1161+
if diffs.len() == 1 {
1162+
let short = out_dir.join("cgann-diff-latest");
1163+
std::fs::copy(&diffs[0], &short).expect("copy to short path");
1164+
eprintln!("Original diff at: {}", diffs[0].to_string_lossy());
1165+
eprintln!("Short path: {}", short.to_string_lossy());
1166+
} else {
1167+
eprintln!("Diffs:");
1168+
for diff in diffs {
1169+
eprintln!("{}", diff.to_string_lossy());
11731170
}
11741171
}
11751172
}

0 commit comments

Comments
 (0)