-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser logic clean up #2320
Parser logic clean up #2320
Conversation
Fix clippy dot fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment.
@@ -1253,25 +1220,19 @@ impl<'help, 'app> Parser<'help, 'app> { | |||
); | |||
if !(self.is_set(AS::TrailingValues) && self.is_set(AS::DontDelimitTrailingValues)) { | |||
if let Some(delim) = arg.val_delim { | |||
if val.is_empty() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this condition removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition can be integrated into another branch. Check: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=81e97b434efed6e03cb6b0bd4644b4bb
Part2 of #2297