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

Improve Path deserialization #1656

Merged
merged 2 commits into from Oct 27, 2019
Merged

Conversation

heftig
Copy link
Contributor

@heftig heftig commented Oct 22, 2019

  • Deserialize PathBuf from UTF-8 bytes, like &Path already does.
  • Deserialize Box<Path> through PathBuf, analogous to Box<CStr>.

Fixes #1633

&Path already allows this. Also complete the tests for Path/PathBuf.
Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thank you!

@dtolnay dtolnay merged commit 4e31c99 into serde-rs:master Oct 27, 2019
@dtolnay
Copy link
Member

dtolnay commented Oct 27, 2019

Published in 1.0.102.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support deserializing Box<Path>
2 participants