mirror of
https://github.com/mikedilger/chorus.git
synced 2026-05-03 06:51:42 +00:00
From<Error> for std::io::Error (map back, as some stream work will need this)
This commit is contained in:
parent
afe3cc9c7b
commit
fab1aa3c10
@ -539,3 +539,9 @@ impl From<Infallible> for Error {
|
||||
panic!("INFALLIBLE")
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Error> for std::io::Error {
|
||||
fn from(e: Error) -> std::io::Error {
|
||||
std::io::Error::other(e)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user