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
I believe the derive macro should only create implementations for the YaDeserialize trait of unknown types. Instead yaserde should have implementations for default visitors similar to serde.
Furthermore I think it would be good, if the primitives have an implementation for the YaDeserialize trait
The text was updated successfully, but these errors were encountered:
If you have a simple struct with two fields of the same type and use
yaserde_derive
, two identical visitors will be generated for these.Example:
Using
cargo expand
shows that two visitors are generatedI believe the derive macro should only create implementations for the
YaDeserialize
trait of unknown types. Insteadyaserde
should have implementations for default visitors similar toserde
.Furthermore I think it would be good, if the primitives have an implementation for the
YaDeserialize
traitThe text was updated successfully, but these errors were encountered: