Merge pull request #2018 from jamesmunns/add-derives
Add some uncontroversial derives to Error types
This commit is contained in:
@ -184,7 +184,7 @@ mod ov7725 {
|
||||
|
||||
const CAM_ADDR: u8 = 0x21;
|
||||
|
||||
#[derive(Format)]
|
||||
#[derive(Format, PartialEq, Eq)]
|
||||
pub enum Error<I2cError: Format> {
|
||||
I2c(I2cError),
|
||||
}
|
||||
|
@ -366,7 +366,7 @@ pub struct ADT7422<'d, BUS: I2cBus> {
|
||||
bus: BUS,
|
||||
}
|
||||
|
||||
#[derive(Debug, Format)]
|
||||
#[derive(Debug, Format, PartialEq, Eq)]
|
||||
pub enum Error<I2cError: Format> {
|
||||
I2c(I2cError),
|
||||
Address,
|
||||
|
Reference in New Issue
Block a user