Skip to content

Conversation

@BjornTheProgrammer
Copy link
Contributor

This changes the front-facing API to use AsRef instead, since this is generally more user-friendly, as you can pass in &str, String, Path, or PathBuf into the function.

The trade-off here is that you can't use lifetimes to store a Path, so it would require some extra allocation, but considering all the functions that are used here only for configuration, it wouldn't be that much extra memory.

Copy link
Owner

@astonbitecode astonbitecode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@astonbitecode astonbitecode merged commit 5307912 into astonbitecode:master Nov 24, 2025
3 checks passed
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