mirror of
https://github.com/rust-embedded/embedded-hal.git
synced 2026-03-14 01:47:38 +00:00
io: Require core::error::Error for the Error trait
This commit is contained in:
parent
3f83185caf
commit
d02f6db110
@ -176,7 +176,7 @@ impl From<std::io::ErrorKind> for ErrorKind {
|
||||
///
|
||||
/// This trait allows generic code to do limited inspecting of errors,
|
||||
/// to react differently to different kinds.
|
||||
pub trait Error: fmt::Debug {
|
||||
pub trait Error: fmt::Debug + core::error::Error {
|
||||
/// Get the kind of this error.
|
||||
fn kind(&self) -> ErrorKind;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user