diff --git a/src/error.rs b/src/error.rs index 5122355..71517b7 100644 --- a/src/error.rs +++ b/src/error.rs @@ -121,6 +121,12 @@ impl From for Error { } } +impl From for Error { + fn from(error: std::io::Error) -> Self { + Self::new(&error.to_string()) + } +} + impl From for Error { fn from(error: ParseError) -> Self { Self::new(&error.to_string())