When serializing a unit or struct unit "serde primitive", serde_qs fails with the following error:
tried to serialize a value before serializing key
When looking at serde_json I think the right thing to do would be to return an empty string in serialize_unit but I am not sure if that breaks the whole serialization implementation.
When serializing a unit or struct unit "serde primitive", serde_qs fails with the following error:
tried to serialize a value before serializing key
When looking at serde_json I think the right thing to do would be to return an empty string in
serialize_unit
but I am not sure if that breaks the whole serialization implementation.https://play.integer32.com/?version=stable&mode=debug&edition=2021&gist=5e91db9aa9b04935c6e3a2f2c41a3ce2 (play.rust-lang.org seems to be down)
Compare with
I probably can provide a PR but would need information about the desired behavior.