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
{{ message }}
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
but if you try and serialize it, it will return toml::ser::Error::KeyNewLine.
So AFAICT, this behavior is motivated by the key-newline.toml test, so this might be expected behavior. But for consistency, I feel like either TOML should refuse to deserialize "\n" as a key, or to go ahead and serialize it as a quoted string key.
Aha nice find! I think we should have a special mode of serializing strings here, falling back to this style of escaped newlines for string keys (to make this round-trippable)
TOML will happily deserialize
but if you try and serialize it, it will return
toml::ser::Error::KeyNewLine
.So AFAICT, this behavior is motivated by the key-newline.toml test, so this might be expected behavior. But for consistency, I feel like either TOML should refuse to deserialize
"\n"
as a key, or to go ahead and serialize it as a quoted string key.Found with https://github.com/rust-fuzz/targets
The text was updated successfully, but these errors were encountered: