Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
sainad2222 committed Oct 3, 2023
1 parent 253fc40 commit 17a5c14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub enum Action {
AbortMerge,
AbortRebase,
AbortRevert,
UndoCommit,
UndoCommit,
}

#[derive(Debug)]
Expand Down
4 changes: 2 additions & 2 deletions src/strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
7 changes: 2 additions & 5 deletions src/tabs/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 17a5c14

Please sign in to comment.