Added From<std::io::Error> for dnst::Error

This commit is contained in:
withjannisNLnetLabs
2026-06-03 17:41:11 +02:00
parent 5f037a70e0
commit 1d93b412b5
+6
View File
@@ -121,6 +121,12 @@ impl From<fmt::Error> for Error {
}
}
impl From<std::io::Error> for Error {
fn from(error: std::io::Error) -> Self {
Self::new(&error.to_string())
}
}
impl From<ParseError> for Error {
fn from(error: ParseError) -> Self {
Self::new(&error.to_string())