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

Use AsRef<Path> generic for parameters to support broader input types #1

Merged
merged 1 commit into from
Jun 21, 2019

Conversation

timvisee
Copy link
Contributor

@timvisee timvisee commented Jun 20, 2019

This PR changes the parameter types from &Path to AsRef<Path>, to allow more types to be provided such as using &str directly.

Along with this I've extended the doc-test with two asserts showing different input types, and I've simplified the used types. An obsolete local import has been removed.

Not sure if this is desired. But I thought this would be an useful addition.

@Manishearth Manishearth merged commit a21672a into Manishearth:master Jun 21, 2019
@Manishearth
Copy link
Owner

Thanks!

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