Fix writing to stdout or file

This commit is contained in:
Jannik Peters
2024-11-21 16:40:41 +01:00
parent f46fdd9683
commit 32ca8f7ca0
3 changed files with 51 additions and 17 deletions
+6
View File
@@ -117,6 +117,12 @@ impl From<String> for Error {
}
}
impl From<fmt::Error> for Error {
fn from(error: fmt::Error) -> Self {
Self::new(&error.to_string())
}
}
impl From<io::Error> for Error {
fn from(error: io::Error) -> Self {
Self::new(&error.to_string())