OpenDevicePartnership / OpenDevicePartnership/embedded-fans
Investigate adding a `defmt::Format` trait-bound to the `Error` trait
Open
@kurtjd is already working on this.
Since Sep 15, 2026.
- Dominant language
- Rust
- Stars
- 1
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Right now, callers cannot log a concrete error generically over defmt since defmt::Format is not a trait bound for Error, only core::fmt::Debug is. This means at best callers can only log the generic ErrorKind over defmt.
Investigate adding this as an additional trait bound if the defmt feature is enabled, but make sure this doesn't cause any other sort of unintentional breakage.
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.
Assessment
This issue has not been assessed yet.