-
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
Add pretty option to serializer #25
Conversation
That's what the serialized stuff looks like: (
boolean: false,
float: 2.180000066757202,
map: {
1: '2',
3: '5',
8: '1',
0: '1',
},
nested: (
a: "Hello from \"RON\"",
b: 'b',
),
) |
@@ -207,13 +241,15 @@ impl<'a> ser::Serializer for &'a mut Serializer { | |||
self.output += variant; | |||
self.output += "("; | |||
value.serialize(&mut *self)?; | |||
self.output += ",)"; | |||
self.output += ")"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This causes the compilation issue. Any idea why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, found the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, beautiful!
|
bors r+ |
cmon buddy! |
bors r- |
Canceled |
No description provided.