Fix warnings in recent nightly.

This commit is contained in:
Dario Nieuwenhuis
2024-03-20 14:54:25 +01:00
parent 3d842dac85
commit eca9aac194
49 changed files with 59 additions and 124 deletions

View File

@@ -473,10 +473,12 @@ impl sealed::Pin for AnyPin {
// ====================
#[cfg(not(feature = "_nrf51"))]
pub(crate) trait PselBits {
fn psel_bits(&self) -> u32;
}
#[cfg(not(feature = "_nrf51"))]
impl<'a, P: Pin> PselBits for Option<PeripheralRef<'a, P>> {
#[inline]
fn psel_bits(&self) -> u32 {

View File

@@ -167,8 +167,10 @@ unsafe fn handle_gpiote_interrupt() {
}
}
#[cfg(not(feature = "_nrf51"))]
struct BitIter(u32);
#[cfg(not(feature = "_nrf51"))]
impl Iterator for BitIter {
type Item = u32;

View File

@@ -21,8 +21,6 @@ pub(crate) mod sealed {
fn regs() -> &'static pac::timer0::RegisterBlock;
}
pub trait ExtendedInstance {}
pub trait TimerType {}
}
/// Basic Timer instance.