Skip to content

Commit 727422e

Browse files
committed
io: Remove redundant requirement on Debug
core::error::Error already depends on Debug, thus this is a compatible simplification.
1 parent de0d966 commit 727422e

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
@@ -172,7 +172,7 @@ impl From<std::io::ErrorKind> for ErrorKind {
172172
///
173173
/// This trait allows generic code to do limited inspecting of errors,
174174
/// to react differently to different kinds.
175-
pub trait Error: fmt::Debug + core::error::Error {
175+
pub trait Error: core::error::Error {
176176
/// Get the kind of this error.
177177
fn kind(&self) -> ErrorKind;
178178
}

0 commit comments

Comments
 (0)