diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32h7/src/bin/camera.rs | 2 | ||||
| -rw-r--r-- | examples/stm32l4/src/bin/spe_adin1110_http_server.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32h7/src/bin/camera.rs b/examples/stm32h7/src/bin/camera.rs index de8ddc292..c22ce4e04 100644 --- a/examples/stm32h7/src/bin/camera.rs +++ b/examples/stm32h7/src/bin/camera.rs | |||
| @@ -184,7 +184,7 @@ mod ov7725 { | |||
| 184 | 184 | ||
| 185 | const CAM_ADDR: u8 = 0x21; | 185 | const CAM_ADDR: u8 = 0x21; |
| 186 | 186 | ||
| 187 | #[derive(Format)] | 187 | #[derive(Format, PartialEq, Eq)] |
| 188 | pub enum Error<I2cError: Format> { | 188 | pub enum Error<I2cError: Format> { |
| 189 | I2c(I2cError), | 189 | I2c(I2cError), |
| 190 | } | 190 | } |
diff --git a/examples/stm32l4/src/bin/spe_adin1110_http_server.rs b/examples/stm32l4/src/bin/spe_adin1110_http_server.rs index 287521582..ba4a9d230 100644 --- a/examples/stm32l4/src/bin/spe_adin1110_http_server.rs +++ b/examples/stm32l4/src/bin/spe_adin1110_http_server.rs | |||
| @@ -366,7 +366,7 @@ pub struct ADT7422<'d, BUS: I2cBus> { | |||
| 366 | bus: BUS, | 366 | bus: BUS, |
| 367 | } | 367 | } |
| 368 | 368 | ||
| 369 | #[derive(Debug, Format)] | 369 | #[derive(Debug, Format, PartialEq, Eq)] |
| 370 | pub enum Error<I2cError: Format> { | 370 | pub enum Error<I2cError: Format> { |
| 371 | I2c(I2cError), | 371 | I2c(I2cError), |
| 372 | Address, | 372 | Address, |
