Closed jonasbb closed 3 years ago
There are various bug reports about the interaction of flatten and deny_unknown_fields. In the end they cannot really be combined, since flatten does not consume the fields thus deny_unknown_fields will error on them.
flatten
deny_unknown_fields
https://github.com/serde-rs/serde/issues/1957 https://github.com/serde-rs/serde/issues/1600 https://github.com/serde-rs/serde/issues/1547
I'm happy to update the wording of the notice to include any suggestions.
@dtolnay Thank you for the comment. Yes I messed up the description while hastily creating this PR. I fixed the mistake.
There are various bug reports about the interaction of
flatten
anddeny_unknown_fields
. In the end they cannot really be combined, since flatten does not consume the fields thusdeny_unknown_fields
will error on them.https://github.com/serde-rs/serde/issues/1957 https://github.com/serde-rs/serde/issues/1600 https://github.com/serde-rs/serde/issues/1547
I'm happy to update the wording of the notice to include any suggestions.