Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrak committed Aug 16, 2024
1 parent 3f5b376 commit 245ab95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bin/nx/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ fn process_udp(
println!("{}", escape_payload(udp_packet.payload()))
}
}
None => eprintln!("{iname} {ptype} {}", "Malformed packet"),
None => eprintln!("{iname} {ptype} Malformed packet"),
}
}

Expand Down Expand Up @@ -815,7 +815,7 @@ fn process_icmpv6(
}
}
}
None => eprintln!("{iname} {ptype} {}", "Malformed packet"),
None => eprintln!("{iname} {ptype} Malformed packet"),
}
}

Expand Down Expand Up @@ -937,7 +937,7 @@ fn process_icmp(
}
}
}
None => eprintln!("{iname} {ptype} {}", "Malformed packet"),
None => eprintln!("{iname} {ptype} Malformed packet"),
}
}

Expand All @@ -946,7 +946,7 @@ mod tests {
use super::*;

fn args_to_filters(args: &[&str]) -> Vec<Filter> {
args.into_iter()
args.iter()
.map(|a| {
let Argument::FilterExpr(f) = parse_arg(a).unwrap() else {
panic!()
Expand Down

0 comments on commit 245ab95

Please sign in to comment.