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
That's definitely a bug. We didn't think about that when we wrote the ToString implementation. The toTomlValue needs to be made smarter, and actually care about the orders of the keys, otherwise it ends up in situations you described.
Hey there,
I'm having an issue when converting a map to a tree, then to a string. Using the following example:
I would expect to get:
But i seem to be getting back the
toml
in a random order, i.eThe random order is fine, but every now and again, i get back something like:
When this string is turned back into a tree (and subsequently a map)
foobar
is now incorrectly part ofqux
.I'm not sure if it's down to how i am using the library or if theres a bug somewhere when converting to a string. Any ideas?
The text was updated successfully, but these errors were encountered: