Skip to content

Commit 9076b0a

Browse files
committed
[io] Require static lifetime bound on Error
1 parent e6b10a6 commit 9076b0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

embedded-io/src/lib.rs

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

0 commit comments

Comments
 (0)