Fixing clippy lint
This commit is contained in:
parent
2c13f23ea4
commit
20981a7963
1 changed files with 2 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue