OpenDevicePartnership / OpenDevicePartnership/embedded-fans

Investigate adding a `defmt::Format` trait-bound to the `Error` trait

Open
#33 0 comments 1 reaction 1 assignee View on GitHub

@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

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.