Format and fix clippy unnecessary 'as'

This commit is contained in:
itsjunetime
2024-05-27 00:37:48 -06:00
parent 9e4ee1ca97
commit eaae21b6e3
4 changed files with 51 additions and 33 deletions
+5 -2
View File
@@ -348,10 +348,13 @@ impl Tui {
term.push(c);
Some(InputAction::Redraw)
}
KeyCode::Backspace if let BottomMessage::Input(InputCommand::Search(ref mut term)) = self.bottom_msg => {
KeyCode::Backspace
if let BottomMessage::Input(InputCommand::Search(ref mut term)) =
self.bottom_msg =>
{
term.pop();
Some(InputAction::Redraw)
},
}
KeyCode::Char(c)
if let BottomMessage::Input(InputCommand::GoToPage(ref mut page)) =
self.bottom_msg =>