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

Update grouped_values_of to use typed API and add support in derive #4544

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

tmccombs
Copy link
Contributor

@tmccombs tmccombs commented Dec 9, 2022

A step towards #2924

clap_derive/src/utils/ty.rs Outdated Show resolved Hide resolved
src/parser/matches/arg_matches.rs Outdated Show resolved Hide resolved
src/parser/matches/arg_matches.rs Outdated Show resolved Hide resolved
src/parser/matches/arg_matches.rs Show resolved Hide resolved
src/parser/matches/arg_matches.rs Outdated Show resolved Hide resolved
src/parser/matches/arg_matches.rs Outdated Show resolved Hide resolved
src/parser/matches/arg_matches.rs Outdated Show resolved Hide resolved
src/parser/matches/arg_matches.rs Outdated Show resolved Hide resolved
src/parser/matches/arg_matches.rs Show resolved Hide resolved
@tmccombs tmccombs force-pushed the group-action branch 2 times, most recently from bd4d79f to 3b2feb0 Compare December 16, 2022 08:19
@tmccombs tmccombs marked this pull request as ready for review December 16, 2022 08:30
@tmccombs
Copy link
Contributor Author

hmm, it looks like rust 1.66 changed the Debug format for PhantomData, which is causing the test for value_parser::value_parser to fail. I'm not sure what to do about that, since updating the test would cause it to fail on older versions of rust.

@epage
Copy link
Member

epage commented Dec 19, 2022

Rebase and tests should get past that problem

@tmccombs tmccombs force-pushed the group-action branch 2 times, most recently from 6e660dc to 1f44263 Compare December 20, 2022 07:08
@tmccombs
Copy link
Contributor Author

Rebase and tests should get past that problem

It looks like master is currently failing in the same way.

@epage
Copy link
Member

epage commented Dec 20, 2022

Oops, forgot to push

Change it to be more consistent with get_one and get_many and related
functions.

Relates-To: clap-rs#2924
@epage
Copy link
Member

epage commented Dec 21, 2022

Thanks!

@epage epage merged commit 957288c into clap-rs:master Dec 21, 2022
@tmccombs tmccombs deleted the group-action branch December 21, 2022 16:26
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.

2 participants