-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
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
Round-trip failure: Empty maps/sequences gain an extra layer of nesting #338
Comments
It seems the wrapping here is to blame: Lines 25 to 26 in c4a7834
Adding the |
This is definitely a bug and should be fixed, thanks for the report! However, please note that in general, |
Can you elaborate on this? I'm aware that textual formats like RON don't round-trip some float values correctly, is there something else specific to RON? |
Yes, sure. The serde data model is inspired by JSON and thus does not differentiate struct from map, lists from tuples, possibly more I don't recall right now. Since we use serde to serialize / deserialize |
Fix ron-rs#338 value map roundtrip
This example program probably ought to exit successfully
But it doesn't:
This actually continues indefinitely.
"{}"
becomes"({})"
which becomes"[({})]"
and from then on we just add square brackets every round-trip.The text was updated successfully, but these errors were encountered: