mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2026-06-11 21:02:07 +08:00
fixed rust 1.74 new clippy lints
This commit is contained in:
parent
a90ce999fc
commit
873a23398f
Binary file not shown.
@ -3,8 +3,8 @@
|
||||
/// Parse CLI arguments, and exit if `--help`, `--version`, or an
|
||||
/// unknown argument was supplied
|
||||
pub fn parse_cli_args() {
|
||||
let args = std::env::args().skip(1);
|
||||
for arg in args {
|
||||
let mut args = std::env::args().skip(1);
|
||||
if let Some(arg) = args.next() {
|
||||
match arg.as_str() {
|
||||
"--help" | "-h" => print_help(),
|
||||
"--version" | "-v" => print_version(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user