mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-12 13:56:46 +00:00
fmt
This commit is contained in:
parent
d592e0f416
commit
3daa0d6a21
|
@ -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