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
This is happens because has_flatten field in Container struct becomes true for enums if any variant contains #[serde(flatten)], but it makes little sense
In this enum
__Field
structs for both variants generated like the variant contains flattened field, but that is true only for the second field:This is happens because
has_flatten
field inContainer
struct becomestrue
for enums if any variant contains#[serde(flatten)]
, but it makes little senseserde/serde_derive/src/internals/attr.rs
Line 219 in 05a5b7e
For enums
has_flatten
should be bound to the variant, not to the enumThe text was updated successfully, but these errors were encountered: