mirror of
https://github.com/NLnetLabs/dnst.git
synced 2026-09-26 19:54:55 +02:00
Fix writing to stdout or file
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user