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

Commit 937fb70

Browse files
o01egmitsuhiko
authored andcommitted
Add Sync and Send as failure::Error supports them. (#283)
1 parent 15b6798 commit 937fb70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compat.rs

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

42-
impl From<Error> for Box<StdError> {
43-
fn from(error: Error) -> Box<StdError> {
42+
impl From<Error> for Box<StdError + Send + Sync> {
43+
fn from(error: Error) -> Box<StdError + Send + Sync> {
4444
Box::new(Compat { error })
4545
}
4646
}

0 commit comments

Comments
 (0)