Skip to content

Commit

Permalink
Document what's happening with derives on i2c::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
ithinuel committed Oct 21, 2023
1 parent 9bde6b5 commit 51badca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rp2040-hal/src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ impl I2cDevice for pac::I2C1 {

/// I2C error
#[non_exhaustive]
// when eh1_0_alpha is set, Debug & defmt::Format are manually implemented
// to rely on eh1.0's ErrorKind.
#[cfg_attr(not(feature = "eh1_0_alpha"), derive(Debug))]
#[cfg_attr(
all(feature = "defmt", not(feature = "eh1_0_alpha")),
Expand Down

0 comments on commit 51badca

Please sign in to comment.