-
-
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
Maps don't consume inputs when used in flatten structs? #1909
Comments
Have you read the commit message of the commit introducing the code? It explains why. 5ee2fc0 |
No, I didn't read, thanks for pointing it. But anyway, this isn't explains why such behaviour considered as correct. Custom struct type interested only in some keys and consumes them from the input. |
I think my preference would be to stick with the current behavior on this. |
I'm wonder of existence of that test:
serde/test_suite/tests/test_annotations.rs
Lines 1928 to 1968 in e6f086d
Why first map don't consume all keys? It seems to me that it should. Current behavior is very unintuitive
The text was updated successfully, but these errors were encountered: