From 0f5cf893f7c15ad268d9388cc7026f245fb25a85 Mon Sep 17 00:00:00 2001 From: extrawurst Date: Wed, 11 Sep 2024 22:24:32 +0200 Subject: [PATCH] fix fmt --- asyncgit/src/sync/commit_filter.rs | 3 ++- src/tabs/status.rs | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/asyncgit/src/sync/commit_filter.rs b/asyncgit/src/sync/commit_filter.rs index cf5a03bf..e8c7f367 100644 --- a/asyncgit/src/sync/commit_filter.rs +++ b/asyncgit/src/sync/commit_filter.rs @@ -214,7 +214,8 @@ pub fn filter_commit_by_search( Ok(msg_summary_match || msg_body_match - || file_match || authors_match) + || file_match + || authors_match) }, )) } diff --git a/src/tabs/status.rs b/src/tabs/status.rs index 7d67f3a5..034ffe39 100644 --- a/src/tabs/status.rs +++ b/src/tabs/status.rs @@ -686,7 +686,8 @@ impl Status { strings::commands::select_staging(&self.key_config), !focus_on_diff, (self.visible - && !focus_on_diff && self.focus == Focus::WorkDir) + && !focus_on_diff + && self.focus == Focus::WorkDir) || force_all, ) .order(strings::order::NAV), @@ -696,7 +697,8 @@ impl Status { strings::commands::select_unstaged(&self.key_config), !focus_on_diff, (self.visible - && !focus_on_diff && self.focus == Focus::Stage) + && !focus_on_diff + && self.focus == Focus::Stage) || force_all, ) .order(strings::order::NAV),