Update comments

This commit is contained in:
Jan Niehusmann 2021-11-21 13:16:03 +00:00
parent 9a018ac359
commit 3ab84702b7
2 changed files with 4 additions and 0 deletions

View file

@ -190,6 +190,8 @@ impl<D: SpiDevice, const DS: u8> Spi<Enabled, D, DS> {
///
/// For eh 1.0.0-alpha.6, Infallible doesn't implement spi::Error,
/// so use a locally defined type instead.
/// This should be removed with the next release of e-h.
/// (https://github.com/rust-embedded/embedded-hal/pull/328)
#[cfg(feature = "eh1_0_alpha")]
pub enum SpiInfallible {}

View file

@ -532,6 +532,8 @@ impl<D: UartDevice> eh1::Read<u8> for UartPeripheral<Enabled, D> {
///
/// For eh 1.0.0-alpha.6, Infallible doesn't implement spi::Error,
/// so use a locally defined type instead.
/// This should be removed with the next release of e-h.
/// (https://github.com/rust-embedded/embedded-hal/pull/328)
#[cfg(feature = "eh1_0_alpha")]
pub enum SerialInfallible {}