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

Support generic structs and enums in derive(FromArgs) #142

Merged
merged 2 commits into from
Sep 21, 2022

Conversation

stormbrew
Copy link
Contributor

This removes the restriction against deriving a struct with FromArgs that takes generic arguments, and adds a test to make sure it works correctly. There isn't really a good reason for this constraint as far as I can tell, and it's surprising if you run into it.

I don't think there's a useful way to break down the type it
complains about on argh/src/lib.rs:981, so just let it ignore
that one.
This removes the restriction against deriving a struct with
FromArgs that takes generic arguments, and adds a test to make sure
it works correctly. There isn't really a good reason for this
constraint as far as I can tell, and it's surprising if you
run into it.
@erickt erickt merged commit b82615a into google:master Sep 21, 2022
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