diff --git a/src/lib.rs b/src/lib.rs index 9f19e95..cf87b86 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,6 +57,15 @@ impl From> for Rear { } } +impl From for Rear { + fn from(error: std::io::Error) -> Self { + Self { + message: error.to_string(), + error: error.into(), + } + } +} + #[cfg(feature = "serde_json")] impl From for Rear { fn from(error: serde_json::Error) -> Self {