src/cli/getopts.rs: cleanup, avoid compiler warning

This commit is contained in:
Dietmar Maurer 2019-02-26 11:55:06 +01:00
parent f8dfbb45c0
commit d02c2ed701
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ pub fn parse_arguments<T: AsRef<str>>(
for i in 0..arg_param.len() { for i in 0..arg_param.len() {
let name = arg_param[i]; let name = arg_param[i];
let is_last_arg_param = (i == arg_param.len() - 1); let is_last_arg_param = i == (arg_param.len() - 1);
if rest.len() == 0 { if rest.len() == 0 {
if !(is_last_arg_param && last_arg_param_is_optional) { if !(is_last_arg_param && last_arg_param_is_optional) {