You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mingun
changed the title
Deserialization of enum variant which recursively refers to itself faild with stackoverflow
Deserialization of enum variant which recursively refers to itself failed with stackoverflow
Oct 9, 2024
Found in https://stackoverflow.com/questions/67932584/deserializing-recursive-xml-using-serde-in-rust
Currently recursively defined enums using newtype variants for recursion lead to stack overflow error:
However, if change newtype variant to the struct variant with one
$value
field, everything works:It seems worth to implement newtype variant deserialization like such structs
The text was updated successfully, but these errors were encountered: