From 51badca0b4cc0dd3b06b89e07dfc743ea6c23bab Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Sat, 21 Oct 2023 20:56:01 +0100 Subject: [PATCH] Document what's happening with derives on i2c::Error --- rp2040-hal/src/i2c.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rp2040-hal/src/i2c.rs b/rp2040-hal/src/i2c.rs index 403bf5cee..aecab59fa 100644 --- a/rp2040-hal/src/i2c.rs +++ b/rp2040-hal/src/i2c.rs @@ -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")),