Skip to content
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

refactor(derive): Clean up unnecessary noop parsing #4627

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

tmccombs
Copy link
Contributor

My guess is this was left over from switching to using the type based API. The generated code for extracting values from ArgMatches had some code that didn't actually do anything, like mapping over the identity function, and wrapping a value in an Ok only to immediately use "?" on it.

My guess is this was left over from switching to using the type based
API. The generated code for extracting values from `ArgMatches` had some
code that didn't actually do anything, like mapping over the identity
function, and wrapping a value in an `Ok` only to immediately use "?" on
it.
@epage
Copy link
Member

epage commented Jan 11, 2023

Thanks!

@epage epage merged commit 37d03bb into clap-rs:master Jan 11, 2023
@tmccombs tmccombs deleted the macro-cleanup branch January 11, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants