Skip to content
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

Fix SeqAccess and MapAccess unchecked unused length; float deserialize simplification #304

Merged
merged 5 commits into from
Apr 19, 2022

Conversation

Lucretiel
Copy link
Contributor

@Lucretiel Lucretiel commented Apr 14, 2022

Fixes #287: currently, the serde deserializer doesn't check the lengths of MapAccess or SeqAccess objects it sends to visit_seq and visit_map. This leads to a problem where certain kinds of input deserialize incorrectly. Added a fix for this bug, as well as a regression test demonstrating it.

Fixes #303: There's no reason to have a complex custom float deserializer when floats already successfully deserialize themselves from ints.

Additionally, made some obvious fixes suggested by cargo check and cargo clippy

@kornelski kornelski merged commit 36940d0 into 3Hren:master Apr 19, 2022
@kornelski
Copy link
Collaborator

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants