From d6c718ca4594b01ec2bd133af9c1ec2fa6c9b48f Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Tue, 10 Oct 2023 09:46:11 +0300 Subject: [PATCH] fix: rustfmt Signed-off-by: Lachezar Lechev --- src/models/library_by_type.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/models/library_by_type.rs b/src/models/library_by_type.rs index b1c15b9c3..441a34e02 100644 --- a/src/models/library_by_type.rs +++ b/src/models/library_by_type.rs @@ -158,13 +158,16 @@ fn catalogs_update( .items .values() .filter(|library_item| F::predicate(library_item, notifications)) - .fold(HashMap::<&str, Vec>::new(), |mut result, library_item| { - result - .entry(&library_item.r#type) - .or_default() - .push(library_item.to_owned()); - result - }) + .fold( + HashMap::<&str, Vec>::new(), + |mut result, library_item| { + result + .entry(&library_item.r#type) + .or_default() + .push(library_item.to_owned()); + result + }, + ) .into_iter() .sorted_by(|(a_type, _), (b_type, _)| { compare_with_priorities(*a_type, *b_type, &*TYPE_PRIORITIES)