Skip to content
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

Merged
merged 2 commits into from
Jul 31, 2017
Merged

Add pretty option to serializer #25

merged 2 commits into from
Jul 31, 2017

Conversation

torkleyy
Copy link
Contributor

No description provided.

@torkleyy
Copy link
Contributor Author

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 += ")";
Copy link
Contributor Author

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, beautiful!

@kvark
Copy link
Collaborator

kvark commented Jul 31, 2017

:shipit:
bors r+

@kvark
Copy link
Collaborator

kvark commented Jul 31, 2017

bors r+

bors bot added a commit that referenced this pull request Jul 31, 2017
25: Add pretty option to serializer r=kvark
@kvark
Copy link
Collaborator

kvark commented Jul 31, 2017

cmon buddy!
bors r+

bors bot added a commit that referenced this pull request Jul 31, 2017
25: Add pretty option to serializer r=kvark
@kvark
Copy link
Collaborator

kvark commented Jul 31, 2017

bors r-

@bors
Copy link
Contributor

bors bot commented Jul 31, 2017

Canceled

@kvark kvark merged commit a94be34 into ron-rs:master Jul 31, 2017
@torkleyy torkleyy deleted the pretty branch July 31, 2017 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants