Skip to content

Commit 20b2516

Browse files
committed
Address all Clippy warnings for: "you are deriving PartialEq and can implement Eq."
1 parent 3bf291c commit 20b2516

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

esp32-wroom-rp/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ use embedded_hal::blocking::delay::DelayMs;
9999
const ARRAY_LENGTH_PLACEHOLDER: usize = 8;
100100

101101
/// Highest level error types for this crate.
102-
#[derive(Debug, PartialEq)]
102+
#[derive(Debug, Eq, PartialEq)]
103103
pub enum Error {
104104
/// SPI/I2C related communications error with the ESP32 WiFi target
105105
Bus,
@@ -127,7 +127,7 @@ impl From<protocol::ProtocolError> for Error {
127127
}
128128

129129
/// A structured representation of a connected NINA firmware device's version number (e.g. 1.7.4).
130-
#[derive(Debug, Default, PartialEq)]
130+
#[derive(Debug, Default, Eq, PartialEq)]
131131
pub struct FirmwareVersion {
132132
major: u8,
133133
minor: u8,

esp32-wroom-rp/src/protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ pub(crate) struct NinaProtocolHandler<'a, B, C> {
241241

242242
// TODO: look at Nina Firmware code to understand conditions
243243
// that lead to NinaProtocolVersionMismatch
244-
#[derive(Debug, PartialEq)]
244+
#[derive(Debug, PartialEq, Eq)]
245245
pub enum ProtocolError {
246246
NinaProtocolVersionMismatch,
247247
CommunicationTimeout,

0 commit comments

Comments
 (0)