refactor, added ip validation
Some checks failed
/ Check (push) Successful in 1m33s
/ Format (push) Successful in 1m23s
/ Clippy (push) Has started running
/ Build (push) Has been cancelled

This commit is contained in:
Phani Pavan K
2025-08-29 10:40:24 +05:30
parent 4eab7aeaac
commit ebd66bfaf6
8 changed files with 90 additions and 60 deletions

View File

@@ -1,4 +1,4 @@
#[allow(non_snake_case)]
#![allow(non_snake_case)]
mod app;
mod ui;
@@ -114,7 +114,7 @@ fn runApp<B: Backend>(app: &mut AppState, terminal: &mut Terminal<B>) -> Result<
(KeyModifiers::NONE, KeyCode::Tab) => app.nextField(),
(KeyModifiers::SHIFT, KeyCode::Tab) => app.prevField(),
(m, KeyCode::Char(v)) => {
(_, KeyCode::Char(v)) => {
if let Some(e) = &app.currentlyEditing {
let mut isIP = false;
let opField = match e {