Improve error message on non-unit enum variants
Zannick opened this issue · 0 comments
Zannick commented
This error message says only error: must be a unit variant
. It seems by default that cargo build is not indicating where this error comes from, so it would be beneficial for the error to say must be a unit variant to derive serde_repr::Serialize
or something like that.