mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2026-08-31 15:11:36 +00:00
fixed rust 1.74 new clippy lints
This commit is contained in:
parent
a90ce999fc
commit
873a23398f
2 changed files with 2 additions and 2 deletions
|
|
@ -3,8 +3,8 @@ use crate::utils::formatted_strings::APP_VERSION;
|
|||
/// 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…
Add table
Add a link
Reference in a new issue