From 9076b0a24d7ca5ec1fbe853f7d1cbd314b08085b Mon Sep 17 00:00:00 2001 From: Victorien Elvinger Date: Tue, 24 Mar 2026 10:33:49 +0100 Subject: [PATCH] [io] Require static lifetime bound on Error --- 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 daca2441..913dffec 100644 --- a/embedded-io/src/lib.rs +++ b/embedded-io/src/lib.rs @@ -174,7 +174,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: core::error::Error { +pub trait Error: core::error::Error + 'static { /// Get the kind of this error. fn kind(&self) -> ErrorKind; }