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

Error when trying to serialize untagged enums #588

Closed
TheAlan404 opened this issue Jul 27, 2023 · 3 comments
Closed

Error when trying to serialize untagged enums #588

TheAlan404 opened this issue Jul 27, 2023 · 3 comments
Labels
A-serde Area: Serde integration C-bug Category: Things not working as expected

Comments

@TheAlan404
Copy link

Here's the playground to reproduce the issue. It panics with UnsupportedType(Some("Magic"))

serde_json can do it, but toml cant.

@epage epage added C-bug Category: Things not working as expected A-serde Area: Serde integration labels Jul 28, 2023
@jonasthewolf
Copy link

@crazymerlyn
Copy link

Seems to be the same as #321 and should now be fixed in #557. The playground link above actually results in no error since it's using the latest toml now.

@epage
Copy link
Member

epage commented Aug 19, 2024

Actually, it was #608 (58a7101) that fixed this. This was opened after #557 was fixed and #321 specifically dealt with tuple variants while this dealt with struct variants.

@epage epage closed this as completed Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-serde Area: Serde integration C-bug Category: Things not working as expected
Projects
None yet
Development

No branches or pull requests

4 participants