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

Improve Path deserialization #1656

merged 2 commits into from Oct 27, 2019

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

heftig added 2 commits Oct 22, 2019
&Path already allows this. Also complete the tests for Path/PathBuf.
Copy link
Member

@dtolnay dtolnay left a comment

Thank you!

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

@dtolnay 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.

2 participants