From 7716c9e16d36ca23ce00f8d7d2d34a723b27caef Mon Sep 17 00:00:00 2001 From: dullbananas Date: Wed, 22 May 2024 13:43:08 -0700 Subject: [PATCH] fmt --- crates/db_schema/src/schema_setup/diff_check.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/db_schema/src/schema_setup/diff_check.rs b/crates/db_schema/src/schema_setup/diff_check.rs index 22a826853..271016d9b 100644 --- a/crates/db_schema/src/schema_setup/diff_check.rs +++ b/crates/db_schema/src/schema_setup/diff_check.rs @@ -46,9 +46,7 @@ pub fn check_dump_diff(mut after: String, mut before: String, label: &str) { .map(|dump| chunks(dump).collect::>()) .differences() // Remove items without unwanted types of differences (if migrations are correct, then this removes everything) - .map(|chunks| { - chunks.map(|&i| normalize_chunk(i)).collect::>() - }); + .map(|chunks| chunks.map(|&i| normalize_chunk(i)).collect::>()); let [mut only_in_before, mut only_in_after] = normalized_chunk_vecs .differences() @@ -257,7 +255,7 @@ fn normalize_chunk<'a>(chunk: &'a str) -> Cow<'a, str> { } fn sort_within_sections(vec: &mut Vec<&T>, mut section: impl FnMut(&T) -> u8) { - vec.sort_unstable_by_key(|&i|(section(i),i)); + vec.sort_unstable_by_key(|&i| (section(i), i)); } fn chunks(dump: &str) -> impl Iterator {