Implement std::error::Error for Error
This commit is contained in:
parent
cb5ad88544
commit
8e47f52803
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue