OpenDevicePartnership / OpenDevicePartnership/embedded-usb-pd

Refactor `Args` into a type that doesn't pack data into sub-byte representations

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.