aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/args.rs')
-rw-r--r--helix-term/src/args.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/args.rs b/helix-term/src/args.rs
index e2bb07c6..f0ef09eb 100644
--- a/helix-term/src/args.rs
+++ b/helix-term/src/args.rs
@@ -17,7 +17,7 @@ impl Args {
iter.next(); // skip the program, we don't care about that
- while let Some(arg) = iter.next() {
+ for arg in &mut iter {
match arg.as_str() {
"--" => break, // stop parsing at this point treat the remaining as files
"--version" => args.display_version = true,