bound on glob functions should be expanded to AsRef<Path>
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 595
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
currently, glob functions only take &str. changing this to impl AsRef<str> would be a trivial and nonbreaking change that makes usage easier and is almost always prefered for functions that take &strs. Additionally, AsRef<Path> would be much more useful when working with the fs module, but is a breaking change and may need more work as most string manipulation functions arent available for Path.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the glob functions and reviewing how the fs module currently handles string inputs. Compare the proposed AsRef change with the broader AsRef option, including the breaking API implications and available Path operations. Done means the intended bound is agreed, implemented consistently, and covered by compatibility tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100