clippy fixes
All checks were successful
/ Quality Check (push) Successful in 1m20s
/ Build (push) Successful in 1m29s

This commit is contained in:
Phani Pavan K
2025-10-20 12:02:53 +05:30
parent 06a661b951
commit a795ad986b
4 changed files with 11 additions and 7 deletions

View File

@@ -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;