oxidecomputer / oxidecomputer/transceiver-control
Ethernet compliance codes can be emitted as strings that we can't parse
Open
@bnaecker is already working on this.
Since Aug 28, 2026.
- Dominant language
- Rust
- Stars
- 9
- Forks
- 0
- Avg merge
- 57m
- Merged PRs (30d)
- 3
Description
We're using Display and FromStr to read / write the Ethernet compliance codes when they appear in an API. Here are the impls:
These two don't match. If we get an unknown code from the module, we write it out as Unknown (0xAA). But we have a wildcard match in the FromStr impl that will catch that and return an error. We need to parse it the same way we emit it.
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.
Assessment
This issue has not been assessed yet.