OpenDevicePartnership / OpenDevicePartnership/embedded-usb-pd
Refactor `Args` into a type that doesn't pack data into sub-byte representations
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Rust
- Stars
- 1
- Forks
- 8
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 2
Description
Performing this refactor may potentially reduce the need for unwraps.
Partly spurred from: https://github.com/OpenDevicePartnership/embedded-usb-pd/pull/60#discussion_r2636429100
Contributor guide
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 Args type and reading the linked pull request #60 discussion for the motivation and constraints. Inspect existing tests or usages of Args before changing its representation; done means the refactor avoids sub-byte packing, reduces unnecessary unwraps where applicable, and existing tests still pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100