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; }