Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit fc65810

Browse files
author
Andrii Radyk
committed
Add back convertion from failure to default std error
1 parent 2b5ab06 commit fc65810

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/compat.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ with_std! {
3939
}
4040
}
4141

42+
impl From<Error> for Box<StdError> {
43+
fn from(error: Error) -> Box<StdError> {
44+
Box::new(Compat { error })
45+
}
46+
}
47+
4248
impl From<Error> for Box<StdError + Send + Sync> {
4349
fn from(error: Error) -> Box<StdError + Send + Sync> {
4450
Box::new(Compat { error })

0 commit comments

Comments
 (0)