From d02f6db11021c8889bb22cd8ec60f0dc47eabb38 Mon Sep 17 00:00:00 2001 From: chrysn Date: Sun, 3 Aug 2025 10:11:39 +0200 Subject: [PATCH] io: Require core::error::Error for the Error trait --- embedded-io/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embedded-io/src/lib.rs b/embedded-io/src/lib.rs index 1412f7e..5f4e48e 100644 --- a/embedded-io/src/lib.rs +++ b/embedded-io/src/lib.rs @@ -176,7 +176,7 @@ impl From 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; }