Skip to content

Commit 0eb292b

Browse files
committed
feat(client/rs): impl std Error for Error type
1 parent 6c4c9e1 commit 0eb292b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

client/rs/src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ pub enum Error {
1717
Other(Errno),
1818
}
1919

20+
impl std::error::Error for Error {}
21+
2022
impl Display for Error {
2123
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
2224
match self {
@@ -31,3 +33,4 @@ impl Display for Error {
3133
}
3234
}
3335
}
36+

0 commit comments

Comments
 (0)