From<Error> for std::io::Error (map back, as some stream work will need this)

This commit is contained in:
Mike Dilger 2024-11-16 20:16:08 +13:00
parent afe3cc9c7b
commit fab1aa3c10
No known key found for this signature in database
GPG Key ID: 47581A78D4329BA4

View File

@ -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)
}
}