Skip to content

Commit

Permalink
Implement From<Error> for std::io::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdanford committed Mar 28, 2024
1 parent e901735 commit c0d82f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ impl fmt::Display for Error {
)
}
}

impl From<Error> for std::io::Error {
fn from(err: Error) -> Self {
err.inner
}
}

0 comments on commit c0d82f9

Please sign in to comment.