-
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
Handle tuple deserialization in deserialize_any properly #124
Conversation
Okay, let's see if bors works now. bors try |
tryBuild succeeded |
Okay, now only one issue remains: The conversion from a serialized tuple to a |
V: Visitor<'de> | ||
{ | ||
// Create a working copy | ||
let mut bytes = self.bytes.clone(); |
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 method doesn't mutate the actual byte stream even on success?
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.
It does, but through calling self.deserialize_tuple
/ self.deserialize_struct
. I need to create a working copy for lookahead first, the bytes do get consumed later.
Thank you for the review! |
Build succeeded |
@@ -1,6 +1,6 @@ | |||
[package] | |||
name = "ron" | |||
version = "0.3.0" | |||
version = "0.4.0" |
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.
Would you like to make a release? I am hitting this exact issue right now 🤣
Sure! |
I think I can just make it |
Ah well, technically it could break something so I'll just go for |
Done ;) |
Fixes #121
Needs some more tests before merging. I'm not happy about all the lookahead that this requires, but I don't see a better solution.