Skip to content

Commit 20e5484

Browse files
authored
Merge pull request #672 from chrysn-pull-requests/io-error-depend-core-error
io: Require core::error::Error for the Error trait
2 parents bba7a6d + d02f6db commit 20e5484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embedded-io/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl From<std::io::ErrorKind> for ErrorKind {
176176
///
177177
/// This trait allows generic code to do limited inspecting of errors,
178178
/// to react differently to different kinds.
179-
pub trait Error: fmt::Debug {
179+
pub trait Error: fmt::Debug + core::error::Error {
180180
/// Get the kind of this error.
181181
fn kind(&self) -> ErrorKind;
182182
}

0 commit comments

Comments
 (0)