all clippy fixes
This commit is contained in:
@ -321,7 +321,6 @@ macro_rules! pin_id {
|
||||
//==================================================================================================
|
||||
|
||||
/// A type-level GPIO pin, parameterized by [`PinId`] and [`PinMode`] types
|
||||
|
||||
pub struct Pin<I: PinId, M: PinMode> {
|
||||
pub(in crate::gpio) regs: Registers<I>,
|
||||
mode: PhantomData<M>,
|
||||
|
@ -305,17 +305,17 @@ impl IrqResultMaxSizeOrTimeout {
|
||||
|
||||
#[inline]
|
||||
pub fn overflow_error(&self) -> bool {
|
||||
self.errors.map_or(false, |e| e.overflow)
|
||||
self.errors.is_some_and(|e| e.overflow)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn framing_error(&self) -> bool {
|
||||
self.errors.map_or(false, |e| e.framing)
|
||||
self.errors.is_some_and(|e| e.framing)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn parity_error(&self) -> bool {
|
||||
self.errors.map_or(false, |e| e.parity)
|
||||
self.errors.is_some_and(|e| e.parity)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
Reference in New Issue
Block a user