getopt: indentation reduction

See the `git diff -w` output:
|diff --git a/src/getopts.rs b/src/getopts.rs
|index 6548a01..517cc37 100644
|--- a/src/getopts.rs
|+++ b/src/getopts.rs
|@@ -72,7 +72,10 @@ pub fn parse_arguments(
|     while pos < args.len() {
|         if skip {
|             rest.push(args[pos].clone());
|-        } else {
|+            pos += 1;
|+            continue;
|+        }
|+
|         match parse_argument(&args[pos]) {
|             RawArgument::Separator => {
|                 skip = true;
|@@ -135,7 +138,6 @@ pub fn parse_arguments(
|                 rest.push(value);
|             }
|         }
|-        }
|
|         pos += 1;
|     }

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2018-12-28 13:54:18 +01:00
parent ad8a98f7e4
commit 99da3a073d
1 changed files with 56 additions and 54 deletions

View File

@ -72,7 +72,10 @@ pub fn parse_arguments(
while pos < args.len() { while pos < args.len() {
if skip { if skip {
rest.push(args[pos].clone()); rest.push(args[pos].clone());
} else { pos += 1;
continue;
}
match parse_argument(&args[pos]) { match parse_argument(&args[pos]) {
RawArgument::Separator => { RawArgument::Separator => {
skip = true; skip = true;
@ -135,7 +138,6 @@ pub fn parse_arguments(
rest.push(value); rest.push(value);
} }
} }
}
pos += 1; pos += 1;
} }