Skip to content

Commit

Permalink
Remove all references to nightly feature
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeaurivage committed Oct 25, 2023
1 parent cd3a32b commit 6d1d419
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ async = [
"cortex-m-interrupt",
"unproven",
"embassy-sync",
"embedded-hal-async",
"futures",
]

Expand Down
1 change: 0 additions & 1 deletion hal/src/async_hal/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ where
}
}

#[cfg(feature = "nightly")]
mod impl_ehal {
use super::*;
use embedded_hal_async::delay::DelayUs;
Expand Down
1 change: 0 additions & 1 deletion hal/src/sercom/i2c/async_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ where
}
}

#[cfg(feature = "nightly")]
mod impl_ehal {
use super::*;
use embedded_hal_async::i2c::{ErrorType, I2c as I2cTrait, Operation};
Expand Down
1 change: 0 additions & 1 deletion hal/src/sercom/i2c/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ pub enum Error {
Dma(crate::dmac::Error),
}

#[cfg(feature = "nightly")]
impl embedded_hal_async::i2c::Error for Error {
// _ pattern reachable when "dma" feature enabled.
#[allow(unreachable_patterns)]
Expand Down
2 changes: 1 addition & 1 deletion hal/src/sercom/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ pub enum Error {
Dma(crate::dmac::Error),
}

#[cfg(all(feature = "async", feature = "nightly"))]
#[cfg(feature = "async")]
impl embedded_hal_async::spi::Error for Error {
// _ pattern reachable when "dma" feature enabled.
#[allow(unreachable_patterns)]
Expand Down
1 change: 0 additions & 1 deletion hal/src/sercom/spi/async_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ where
}
}

#[cfg(feature = "nightly")]
mod impl_ehal {
use super::*;
use crate::sercom::spi::Error;
Expand Down
4 changes: 2 additions & 2 deletions hal/src/thumbv6m/eic/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ crate::paste::item! {
}
}

#[cfg(all(feature = "async", feature = "nightly"))]
#[cfg(feature = "async")]
impl<GPIO, I> embedded_hal_alpha::digital::ErrorType for [<$PadType $num>]<GPIO, I>
where
GPIO: AnyPin,
Expand All @@ -208,7 +208,7 @@ crate::paste::item! {
type Error = core::convert::Infallible;
}

#[cfg(all(feature = "async", feature = "nightly"))]
#[cfg(feature = "async")]
impl<GPIO, I> embedded_hal_async::digital::Wait for [<$PadType $num>]<GPIO, I>
where
GPIO: AnyPin,
Expand Down
4 changes: 2 additions & 2 deletions hal/src/thumbv7em/eic/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ crate::paste::item! {
}
}

#[cfg(all(feature = "async", feature = "nightly"))]
#[cfg(feature = "async")]
impl<GPIO, I> embedded_hal_alpha::digital::ErrorType for [<$PadType $num>]<GPIO, I>
where
GPIO: AnyPin,
Expand All @@ -259,7 +259,7 @@ crate::paste::item! {
type Error = core::convert::Infallible;
}

#[cfg(all(feature = "async", feature = "nightly"))]
#[cfg(feature = "async")]
impl<GPIO, I> embedded_hal_async::digital::Wait for [<$PadType $num>]<GPIO, I>
where
GPIO: AnyPin,
Expand Down

0 comments on commit 6d1d419

Please sign in to comment.