mirror of
https://github.com/NLnetLabs/dnst.git
synced 2026-08-31 12:19:51 +02:00
Added From<std::io::Error> for dnst::Error
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user