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
Fixes #287: currently, the serde deserializer doesn't check the lengths of MapAccess or SeqAccess objects it sends to
visit_seq
andvisit_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
andcargo clippy