Skip to content

Implement FromStr for PathBuf #489

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
Nov 9, 2019

Conversation

jaysonsantos
Copy link
Contributor

@jaysonsantos jaysonsantos commented Nov 9, 2019

This makes PathBuf compatible with std version as you can simply call:

let path: PathBuf = FromStr::from_str(s).unwrap()

This makes PathBuf compatible with std version as you can simply call
let path: PathBuf = FromStr::from_str(s).unwrap()
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.

This is great, thanks heaps!

@yoshuawuyts
Copy link
Contributor

@yoshuawuyts yoshuawuyts merged commit 16565cc into async-rs:master Nov 9, 2019
@jaysonsantos jaysonsantos deleted the pathbuf-fromstr branch November 9, 2019 19:58
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.

2 participants