From 3daa0d6a2132452c96f6c34b2a6fa2ef49e996d2 Mon Sep 17 00:00:00 2001 From: dullbananas Date: Mon, 27 May 2024 20:22:16 -0700 Subject: [PATCH] fmt --- crates/db_schema/src/schema_setup/diff_check.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/db_schema/src/schema_setup/diff_check.rs b/crates/db_schema/src/schema_setup/diff_check.rs index d8637d0aa..39dcba013 100644 --- a/crates/db_schema/src/schema_setup/diff_check.rs +++ b/crates/db_schema/src/schema_setup/diff_check.rs @@ -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::(),