diff --git a/machine/src/platform/rpi3/display.rs b/machine/src/platform/rpi3/display.rs index 1749f2a..91d37d2 100644 --- a/machine/src/platform/rpi3/display.rs +++ b/machine/src/platform/rpi3/display.rs @@ -43,7 +43,7 @@ impl Color { } } -#[derive(PartialEq)] +#[derive(PartialEq, Eq)] pub enum PixelOrder { BGR, RGB, diff --git a/machine/src/platform/rpi3/gpio.rs b/machine/src/platform/rpi3/gpio.rs index 9a22661..f9bfda4 100644 --- a/machine/src/platform/rpi3/gpio.rs +++ b/machine/src/platform/rpi3/gpio.rs @@ -152,7 +152,7 @@ impl ::core::convert::From for u32 { /// Pull up/down resistor setup. #[repr(u8)] -#[derive(PartialEq)] +#[derive(PartialEq, Eq)] pub enum PullUpDown { None = 0b00, Up = 0b01,