From 894314ccdc08be381a315c7aa36419fe99866172 Mon Sep 17 00:00:00 2001 From: rusticorn Date: Wed, 20 May 2026 10:44:02 +0200 Subject: [PATCH] cargo fmt --- src/popups/create_branch.rs | 6 +++--- src/popups/rename_branch.rs | 6 +++--- src/strings.rs | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/popups/create_branch.rs b/src/popups/create_branch.rs index 565515ea..96dc90a1 100644 --- a/src/popups/create_branch.rs +++ b/src/popups/create_branch.rs @@ -65,9 +65,9 @@ impl Component for CreateBranchPopup { kind, state, }) => Cow::Owned(Event::Key(KeyEvent { - code: KeyCode::Char(strings::normalize_branch_name_char( - *c, - )), + code: KeyCode::Char( + strings::normalize_branch_name_char(*c), + ), modifiers: *modifiers, kind: *kind, state: *state, diff --git a/src/popups/rename_branch.rs b/src/popups/rename_branch.rs index eaaddcf0..dc64b39e 100644 --- a/src/popups/rename_branch.rs +++ b/src/popups/rename_branch.rs @@ -65,9 +65,9 @@ impl Component for RenameBranchPopup { kind, state, }) => Cow::Owned(Event::Key(KeyEvent { - code: KeyCode::Char(strings::normalize_branch_name_char( - *c, - )), + code: KeyCode::Char( + strings::normalize_branch_name_char(*c), + ), modifiers: *modifiers, kind: *kind, state: *state, diff --git a/src/strings.rs b/src/strings.rs index 56b1cadf..93496cd2 100644 --- a/src/strings.rs +++ b/src/strings.rs @@ -439,10 +439,10 @@ pub fn ellipsis_trim_start(s: &str, width: usize) -> Cow<'_, str> { } pub const fn normalize_branch_name_char(c: char) -> char { - match c { - ' ' => '-', - c => c, - } + match c { + ' ' => '-', + c => c, + } } #[derive(PartialEq, Eq, Clone, Copy)]