diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-10-07 00:03:10 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-07 00:03:10 +0000 |
| commit | 85c6f23dcbd929d0857f7848fadbe0d52323c945 (patch) | |
| tree | 3d7c52eb1ca1fdedee18eba5ec690d67d4c88e80 /examples | |
| parent | 9c6a2d9cbdc22aa82b3fd26f42eb2b37c919fef4 (diff) | |
| parent | 022d870d616575805ace9b37ea87bae1fd90cb84 (diff) | |
Merge pull request #2018 from jamesmunns/add-derives
Add some uncontroversial derives to Error types
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 0ea8b4498..64ca65a02 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, |
