Skip to content

Add support for any type which implies impl AsRef<Path>#4

Open
dresswithpockets wants to merge 1 commit intoFreaky:masterfrom
dresswithpockets:impl-asref-path
Open

Add support for any type which implies impl AsRef<Path>#4
dresswithpockets wants to merge 1 commit intoFreaky:masterfrom
dresswithpockets:impl-asref-path

Conversation

@dresswithpockets
Copy link

Hiya!

I use faccess to get cross-platform permission checking. I also make heavy use of typed-path. std functions which accept paths almost always accept impl AsRef<Path> rather than &Path directly; this allows crates like typed_path to create path-like objects that can be passed to e.g. fs::* functions seamlessly.

This shouldn't be a breaking change since &Path impls AsRef<Path>. All tests pass.

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.

1 participant