Fixing clippy lint

This commit is contained in:
Ryan Summers 2023-03-30 18:02:46 +02:00
commit 20981a7963

View file

@ -13,7 +13,7 @@ pub mod common {
pub const PHY_CONFIG: u16 = 0x2E;
pub const VERSION: u16 = 0x39;
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
#[derive(Default, Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
#[repr(u8)]
pub enum PhyOperationMode {
/// 10BT half-duplex. Auto-negotiation disabled.
@ -29,6 +29,7 @@ pub mod common {
/// Power down mode.
PowerDown = 0b110_000,
/// All capable. Auto-negotiation enabled.
#[default]
Auto = 0b111_000,
}
@ -38,12 +39,6 @@ pub mod common {
}
}
impl Default for PhyOperationMode {
fn default() -> PhyOperationMode {
PhyOperationMode::Auto
}
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
#[repr(u8)]
pub enum PhySpeedStatus {