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

EnumDiscriminant inherits the repr and discriminant values #288

Merged
merged 4 commits into from Oct 29, 2023

Conversation

jscatena88
Copy link
Contributor

Would close #283

Since FromRepr also uses the repr attribute as well, I attempted to centralize the parsing to retrieve it into helpers/type_props.rs.

I don't have any prior experience working with proc macros or syn in general so feel free to give stylistic pointers in addition to feedback on the functionality itself

@jscatena88
Copy link
Contributor Author

Hey @Peternator7 just wanted to ping you and see if there is anything blocking this PR? Happy to iterate on it if it needs anything

@Peternator7
Copy link
Owner

hey @jscatena88, sorry for the delay. It looks great! thanks for the update. It's a breaking change, but more consistent so let's do it.

@Peternator7 Peternator7 merged commit e8b2ff1 into Peternator7:master Oct 29, 2023
1 check passed
@gibbz00 gibbz00 mentioned this pull request Jan 23, 2024
@Peternator7
Copy link
Owner

Published strum version 0.26.0 that includes this feature.

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.

EnumDiscriminants should inherit the repr of the enum they are derived from
2 participants