We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When attempting to use an untagged enum over a char as a map key while serializing to TOML I see this error: map key was not a string.
char
map key was not a string
Writing my own serializer which uses char::encode_utf8 lets me work around this, but I think TOML should directly support a char as a map key?
char::encode_utf8
Presumably this is just a little code in KeySerializer's fn serialize_char, maybe also the deserializer.
KeySerializer
fn serialize_char
The text was updated successfully, but these errors were encountered:
The approach I've been taking is that we do whatever serde_json does.
serde_json
Please follow the pattern in #586 by including a complete reproduction case that contrasts tomls behavior with serde_json.
toml
Sorry, something went wrong.
No branches or pull requests
When attempting to use an untagged enum over a
char
as a map key while serializing to TOML I see this error:map key was not a string
.Writing my own serializer which uses
char::encode_utf8
lets me work around this, but I think TOML should directly support achar
as a map key?Presumably this is just a little code in
KeySerializer
'sfn serialize_char
, maybe also the deserializer.The text was updated successfully, but these errors were encountered: