fix clippy suggestions
All checks were successful
/ Quality Check (push) Successful in 1m33s
/ Build (push) Successful in 1m41s

This commit is contained in:
Phani Pavan K
2025-09-20 07:02:56 +05:30
parent b334ffabac
commit 1934c869a7
3 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ impl Entry {
|| !toPort.parse::<i32>().is_ok_and(|a| a > 1 && a < 65535)
{
Err(EntryCreation::PortValidationError)
} else if !ip.is_match(&fromIP.trim()) || !ip.is_match(&toIP.trim()) {
} else if !ip.is_match(fromIP.trim()) || !ip.is_match(toIP.trim()) {
Err(EntryCreation::IPValidationError)
} else {
Ok(Entry {

View File

@@ -96,7 +96,7 @@ impl AppState {
))
}
outputString.push_str("\nwait");
std::fs::write("./forward.sh", outputString);
let _ = std::fs::write("./forward.sh", outputString);
}
pub fn save(&self) {

View File

@@ -43,7 +43,7 @@ pub fn ui(frame: &mut Frame, app: &AppState) {
let mut currentItems = Vec::<ListItem>::new();
for (i, e) in app.entries.iter().enumerate() {
currentItems.push(ListItem::new(Line::from(Span::styled(
format!("{}. {}", i, e),
format!("{i}. {e}"),
Style::default().fg(Color::Yellow),
))));
}