You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That method is intended only to provide data for sequential types. To provide data for map types you should call visit_map which would use a special deserializer to deserialize keys
it uses fields.len() as expected tuple size, which is not correct if some fields has aliases. You are never known the count of fields in a struct.
The text was updated successfully, but these errors were encountered:
During investigation of correct serde deserializers behavior I found, that postcard implements struct deserialization incorrectly:
Visitor::visit_seq
:postcard/src/de/deserializer.rs
Lines 500 to 510 in a095b49
That method is intended only to provide data for sequential types. To provide data for map types you should call
visit_map
which would use a special deserializer to deserialize keysfields.len()
as expected tuple size, which is not correct if some fields has aliases. You are never known the count of fields in a struct.The text was updated successfully, but these errors were encountered: