mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-29 06:11:36 +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(
|
||||
diff_lines
|
||||
.into_iter()
|
||||
.flat_map(|line| {
|
||||
match line {
|
||||
diff::Result::Left(s) => ["- ", s, "\n"],
|
||||
diff::Result::Right(s) => ["+ ", s, "\n"],
|
||||
diff::Result::Both(s, _) => [" ", s, "\n"],
|
||||
}
|
||||
.flat_map(|line| match line {
|
||||
diff::Result::Left(s) => ["- ", s, "\n"],
|
||||
diff::Result::Right(s) => ["+ ", s, "\n"],
|
||||
diff::Result::Both(s, _) => [" ", s, "\n"],
|
||||
})
|
||||
.chain(["\n"])
|
||||
.collect::<String>(),
|
||||
|
|
Loading…
Reference in a new issue