Skip to content

Commit

Permalink
Propagate the eio ErrorKind
Browse files Browse the repository at this point in the history
  • Loading branch information
rmja committed Oct 24, 2023
1 parent 1890da8 commit 9a43ea6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ pub enum Error {

impl embedded_io::Error for Error {
fn kind(&self) -> embedded_io::ErrorKind {
embedded_io::ErrorKind::Other
match self {
Error::Network(kind) => *kind,
_ => embedded_io::ErrorKind::Other,
}
}
}

Expand Down

0 comments on commit 9a43ea6

Please sign in to comment.