Skip to content

Commit efb19d7

Browse files
authored
fix: add StdError (#7)
1 parent 75143d1 commit efb19d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use std::error::Error as StdError;
12
use std::fmt;
23
use std::io::Error as StdIoError;
34
use std::result::Result as StdResult;
@@ -39,6 +40,8 @@ impl fmt::Display for Error {
3940
}
4041
}
4142

43+
impl StdError for Error {}
44+
4245
impl From<StdIoError> for Error {
4346
fn from(err: StdIoError) -> Error {
4447
Error::Io(err)

0 commit comments

Comments
 (0)