clippy fixes
This commit is contained in:
@@ -81,7 +81,11 @@ fn runApp<B: Backend>(app: &mut AppState, terminal: &mut Terminal<B>) -> Result<
|
||||
KeyCode::Char('q') | KeyCode::F(10) | KeyCode::Esc => {
|
||||
app.screen = CurrentScreen::Exit
|
||||
}
|
||||
KeyCode::Char('s') | KeyCode::F(2) => app.screen = CurrentScreen::Settings,
|
||||
KeyCode::Char('s') => {
|
||||
app.save();
|
||||
app.appStatus = AppStatus::Saved;
|
||||
}
|
||||
KeyCode::F(2) => app.screen = CurrentScreen::Settings,
|
||||
KeyCode::Char('d') => app.screen = CurrentScreen::Delete,
|
||||
KeyCode::Up => app.prevRow(),
|
||||
KeyCode::Down => app.nextRow(),
|
||||
@@ -94,7 +98,7 @@ fn runApp<B: Backend>(app: &mut AppState, terminal: &mut Terminal<B>) -> Result<
|
||||
EditingField::ToPort => {
|
||||
let res = app.store();
|
||||
match res {
|
||||
EntryValError::NONE => {
|
||||
EntryValError::None => {
|
||||
app.screen = CurrentScreen::Main;
|
||||
app.currentlyEditing = None;
|
||||
app.appStatus = AppStatus::Added;
|
||||
|
||||
Reference in New Issue
Block a user