-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
#[serde(flatten)]
does not work when deserializing twice nested struct with a capturing map
#2764
Comments
Yes, that is a known bug, that Lines 2759 to 2775 in 9e6158e
To be precise, problems will be with any types that use |
Thank you for the response! |
This is probably related to the issues with combining
flatten
anddeny_unknown_fields
. However, a slightly different variant with only flatten and no enums:I would expect only "foo" to appear in the map:
Instead, I get this
Commenting out either the map or the struct Inner, it works as expected.
Versions:
The text was updated successfully, but these errors were encountered: