Skip to content

Added Extend + FromStream for PathBuf #375

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

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

sunjay
Copy link
Contributor

@sunjay sunjay commented Oct 20, 2019

I mentioned in #183 (comment) that it might be a good idea to add FromStream for PathBuf since the std version implements FromIterator. I had a few minutes today, and I still had one more PR left for hacktoberfest, so I thought it'd be fun to add this impl. 😄

The FromStream (and Extend) impls I added are gated under the unstable feature since they use unstable parts of async-std. This PR basically follows suit from my other PRs (#265, #266, etc.). The impls for PathBuf were pretty much identical to the existing ones for Vec<T> and other collections.

I ran all the tests, rustfmt, and clippy, so hopefully this should be good to go! 🎉

cc @yoshuawuyts

Copy link
Collaborator

@skade skade left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

Thanks heaps!

@yoshuawuyts yoshuawuyts merged commit 1baee98 into async-rs:master Oct 28, 2019
@sunjay sunjay deleted the fromstream-pathbuf branch October 28, 2019 13:19
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.

3 participants