Fix docs for SerialInfallible.

This commit is contained in:
Jonathan Pallant 2021-12-26 20:57:04 +00:00
parent 55acbdb1b0
commit 67d9da85e6

View file

@ -74,9 +74,9 @@ pub struct UartConfig {
pub parity: Option<Parity>,
}
/// Same as core::convert::Infallible, but implementing spi::Error
/// Same as core::convert::Infallible, but implementing serial::Error
///
/// For eh 1.0.0-alpha.6, Infallible doesn't implement spi::Error,
/// For eh 1.0.0-alpha.6, Infallible doesn't implement serial::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)