Skip to content

Commit

Permalink
rust 1.74 clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Nov 29, 2023
1 parent cb0c1e8 commit 1b46612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 1b46612

Please sign in to comment.