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

Add support for unit-variant enums #46

Merged
merged 4 commits into from
Jan 5, 2020
Merged

Conversation

tobz1000
Copy link
Contributor

@tobz1000 tobz1000 commented Jan 5, 2020

What did you implement:

Support for unit-variant enums as values, without need for field_identifier or untagged attributes. Most importantly, this allows enums with a remote Deserialize impl to be used without additional effort.

Relevant issue (currently closed): #39

How did you verify your change:

Removed usage of field_identifier & untagged attributes in unit tests. The modified tests failed without this implementation, and now pass.

What (if anything) would need to be called out in the CHANGELOG for the next release:

(Hopefully) updated changelog appropriately.

@tobz1000 tobz1000 changed the title Add support for unit enum variants Add support for unit-variant enums Jan 5, 2020
Copy link
Owner

@softprops softprops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thanks @tobz1000!

@softprops softprops merged commit 92f3fda into softprops:master Jan 5, 2020
@softprops
Copy link
Owner

published new version with this change https://github.com/softprops/envy/blob/master/CHANGELOG.md#041

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