From 17a5c148380864530cc8f6a1f7306a45d6b96eff Mon Sep 17 00:00:00 2001 From: Sainath Singineedi Date: Tue, 3 Oct 2023 11:31:41 +0530 Subject: [PATCH] Fix lints --- src/queue.rs | 2 +- src/strings.rs | 4 ++-- src/tabs/status.rs | 7 ++----- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/queue.rs b/src/queue.rs index de24524f42a..170bc68ca32 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -54,7 +54,7 @@ pub enum Action { AbortMerge, AbortRebase, AbortRevert, - UndoCommit, + UndoCommit, } #[derive(Debug)] diff --git a/src/strings.rs b/src/strings.rs index 88eb03df1fe..ecece1f0f40 100644 --- a/src/strings.rs +++ b/src/strings.rs @@ -147,7 +147,7 @@ pub fn confirm_title_reset() -> String { "Reset".to_string() } pub fn confirm_title_undo_commit() -> String { - "Undo commit".to_string() + "Undo commit".to_string() } pub fn confirm_title_stashdrop( _key_config: &SharedKeyConfig, @@ -208,7 +208,7 @@ pub fn confirm_msg_reset_lines(lines: usize) -> String { ) } pub fn confirm_msg_undo_commit() -> String { - "confirm undo last commit?".to_string() + "confirm undo last commit?".to_string() } pub fn confirm_msg_stashdrop( _key_config: &SharedKeyConfig, diff --git a/src/tabs/status.rs b/src/tabs/status.rs index 034dfae256c..d7e323740fd 100644 --- a/src/tabs/status.rs +++ b/src/tabs/status.rs @@ -610,11 +610,8 @@ impl Status { } fn undo_last_commit(&self) { - self.queue.push( - InternalEvent::ConfirmAction( - Action::UndoCommit, - ), - ); + self.queue + .push(InternalEvent::ConfirmAction(Action::UndoCommit)); } fn branch_compare(&mut self) {