Skip to content

Fix struct newtype deserialization (and add tests)#45

Merged
bors[bot] merged 2 commits intonox:masterfrom
samsieber:fix-newtype-struct-deserialize
Nov 19, 2018
Merged

Fix struct newtype deserialization (and add tests)#45
bors[bot] merged 2 commits intonox:masterfrom
samsieber:fix-newtype-struct-deserialize

Conversation

@samsieber
Copy link
Contributor

Fixes #41

I only had to fix the deserializer - the serialization already works. So now they work the same way - you can serialize something and then deserialize it losslessly.

I also added tests for serialization and deserialization. Let me know if there's anything you'd like changed.

@nox
Copy link
Owner

nox commented Nov 19, 2018

Nice. Could you bump the version to 0.5.4 while at it?

@samsieber
Copy link
Contributor Author

Sure - version bumped

@nox
Copy link
Owner

nox commented Nov 19, 2018

bors r+

Feel free to ping me if I forget to publish the new version once this lands.

bors bot added a commit that referenced this pull request Nov 19, 2018
45: Fix struct newtype deserialization (and add tests) r=nox a=samsieber

Fixes #41

I only had to fix the deserializer - the serialization already works. So now they work the same way - you can serialize something and then deserialize it losslessly. 

I also added tests for serialization and deserialization. Let me know if there's anything you'd like changed.

Co-authored-by: Sam Sieber <swsieber@gmail.com>
@bors
Copy link
Contributor

bors bot commented Nov 19, 2018

Build succeeded

@bors bors bot merged commit 8f829ac into nox:master Nov 19, 2018
@samsieber
Copy link
Contributor Author

@nox ping! I actually have no idea how long it takes for you to cut a release, so I'll ping you again in a day or two if I don't see it.

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.

Can't deserialize newtype structs

2 participants