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

refactor: use AsRef<Path> in load_jumbf_from_file() #910

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

Conversation

andrewhalle
Copy link

Changes in this pull request

While using this function, I noticed that it takes an explicit &Path, which isn't as ergonomic as it could be. All of the functions in std::fs use AsRef<Path>, which means that this function could easily take strings as well.

&Path is used a lot in this crate, and I didn't change any of the other occurrences. I'm happy to do so, just figured I would start the discussion with this PR.

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

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