mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 06:41:18 +00:00
fmt
This commit is contained in:
parent
d592e0f416
commit
3daa0d6a21
1 changed files with 4 additions and 6 deletions
|
@ -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>(),
|
||||||
|
|
Loading…
Reference in a new issue