Implement StdError for Error
This commit is contained in:
parent
e9910a4b6e
commit
939525d5c3
1 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,12 @@ impl std::fmt::Display for Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::error::Error for Error {
|
||||||
|
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
|
||||||
|
self.kind.source()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<T> From<T> for Error
|
impl<T> From<T> for Error
|
||||||
where
|
where
|
||||||
ErrorKind: From<T>,
|
ErrorKind: From<T>,
|
||||||
|
|
Loading…
Reference in a new issue