diff --git a/embassy-net-adin1110/src/lib.rs b/embassy-net-adin1110/src/lib.rs index 4dafc8b0f..6ecfa587d 100644 --- a/embassy-net-adin1110/src/lib.rs +++ b/embassy-net-adin1110/src/lib.rs @@ -27,8 +27,9 @@ use embedded_hal_async::digital::Wait; use embedded_hal_async::spi::{Error, Operation, SpiDevice}; use heapless::Vec; pub use mdio::MdioBus; -pub use phy::{Phy10BaseT1x, RegsC22, RegsC45}; -pub use regs::{Config0, Config2, SpiRegisters as sr, Status0, Status1}; +pub use phy::Phy10BaseT1x; +use phy::{RegsC22, RegsC45}; +use regs::{Config0, Config2, SpiRegisters as sr, Status0, Status1}; use crate::fmt::Bytes; use crate::regs::{LedCntrl, LedFunc, LedPol, LedPolarity, SpiHeader}; diff --git a/embassy-net-adin1110/src/phy.rs b/embassy-net-adin1110/src/phy.rs index 9966e1f6a..d54d843d2 100644 --- a/embassy-net-adin1110/src/phy.rs +++ b/embassy-net-adin1110/src/phy.rs @@ -30,7 +30,6 @@ pub mod RegsC45 { } impl DA1 { - #[allow(missing_docs)] #[must_use] pub fn into(self) -> (u8, u16) { (0x01, self as u16) @@ -50,7 +49,6 @@ pub mod RegsC45 { } impl DA3 { - #[allow(missing_docs)] #[must_use] pub fn into(self) -> (u8, u16) { (0x03, self as u16) @@ -66,7 +64,6 @@ pub mod RegsC45 { } impl DA7 { - #[allow(missing_docs)] #[must_use] pub fn into(self) -> (u8, u16) { (0x07, self as u16) @@ -90,7 +87,6 @@ pub mod RegsC45 { } impl DA1E { - #[allow(missing_docs)] #[must_use] pub fn into(self) -> (u8, u16) { (0x1e, self as u16) @@ -108,7 +104,6 @@ pub mod RegsC45 { } impl DA1F { - #[allow(missing_docs)] #[must_use] pub fn into(self) -> (u8, u16) { (0x1f, self as u16)