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

Allow untagged unit variants to deserialize from Visitor::visit_none() #1669

Merged
merged 4 commits into from Nov 25, 2019

Conversation

H2CO3
Copy link
Contributor

@H2CO3 H2CO3 commented Nov 6, 2019

Fixes #1668.

Note: the test suite fails to compile on my machine for some reason. I still added a test verifying the expected behavior nevertheless – could you please check if it's correct?

@H2CO3
Copy link
Contributor Author

H2CO3 commented Nov 7, 2019

God, I can't figure out how to add the appropriate test. This is clearly not a round-trip case. I give up. 😄

Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks!

@dtolnay dtolnay merged commit ff70409 into serde-rs:master Nov 25, 2019
@H2CO3
Copy link
Contributor Author

H2CO3 commented Nov 25, 2019

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Untagged unit variant fails to deserialize from visit_none()
2 participants