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 &Path instead of &str for path in write_to_path #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tarneaux
Copy link

Since all underlying crates use a &Path as the type for writing, it makes much more sense to just use that as the type for write_to_path, especially since strs can be freely cast to Paths, but Paths can't be cast to strs all the time (since on some OSes, non-unicode characters are allowed in paths).

Since all underlying crates use a &Path as the type for writing, it
makes much more sense to just use that as the type for `write_to_path`,
especially since strs can be freely cast to Paths, but Paths can't be
cast to strs all the time (since on some OSes, non-unicode characters
are allowed in paths).
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