oxidecomputer / oxidecomputer/hubtools
Weird trait bounds on `RawHubrisArchive::load`
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2
- Forks
- 5
- Avg merge
- 49m
- Merged PRs (30d)
- 1
Description
pub fn load<P: AsRef<Path> + std::fmt::Debug + Copy>(
filename: P,
) -> Result<Self, Error> {
Having Copy is a weird bound here, because the other bounds ensure that we can convert to a &Path (which is trivially Copy)
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
Locate RawHubrisArchive::load and inspect how its filename argument is converted to a &Path. Verify whether Copy is unnecessary, remove the redundant bound if so, and run the existing test suite or relevant archive tests to confirm the API still compiles and behaves correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100