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:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user