This commit is contained in:
dullbananas 2024-05-27 20:22:16 -07:00 committed by GitHub
parent d592e0f416
commit 3daa0d6a21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,12 +100,10 @@ pub fn check_dump_diff(before: String, after: String, label: &str) {
Some( Some(
diff_lines diff_lines
.into_iter() .into_iter()
.flat_map(|line| { .flat_map(|line| match line {
match line {
diff::Result::Left(s) => ["- ", s, "\n"], diff::Result::Left(s) => ["- ", s, "\n"],
diff::Result::Right(s) => ["+ ", s, "\n"], diff::Result::Right(s) => ["+ ", s, "\n"],
diff::Result::Both(s, _) => [" ", s, "\n"], diff::Result::Both(s, _) => [" ", s, "\n"],
}
}) })
.chain(["\n"]) .chain(["\n"])
.collect::<String>(), .collect::<String>(),