Implement std::error::Error for Error

This commit is contained in:
Christoph Herzog 2019-10-30 01:11:44 +01:00
parent cb5ad88544
commit 8e47f52803
1 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,8 @@ impl Display for Error {
}
}
impl std::error::Error for Error {}
impl Display for ErrorCode {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {