@@ -87,7 +87,7 @@ macro_rules! impl_error_chain_processed {
87
87
88
88
fn with_chain<E , K >( error: E , kind: K )
89
89
-> Self
90
- where E : :: std:: error:: Error + Send + ' static ,
90
+ where E : :: std:: error:: Error + Send + Sync + ' static ,
91
91
K : Into <Self :: ErrorKind >
92
92
{
93
93
Self :: with_chain( error, kind)
@@ -129,14 +129,14 @@ macro_rules! impl_error_chain_processed {
129
129
/// Constructs a chained error from another error and a kind, and generates a backtrace.
130
130
pub fn with_chain<E , K >( error: E , kind: K )
131
131
-> $error_name
132
- where E : :: std:: error:: Error + Send + ' static ,
132
+ where E : :: std:: error:: Error + Send + Sync + ' static ,
133
133
K : Into <$error_kind_name>
134
134
{
135
135
$error_name:: with_boxed_chain( Box :: new( error) , kind)
136
136
}
137
137
138
138
/// Construct a chained error from another boxed error and a kind, and generates a backtrace
139
- pub fn with_boxed_chain<K >( error: Box <:: std:: error:: Error + Send >, kind: K )
139
+ pub fn with_boxed_chain<K >( error: Box <:: std:: error:: Error + Send + Sync >, kind: K )
140
140
-> $error_name
141
141
where K : Into <$error_kind_name>
142
142
{
@@ -320,7 +320,7 @@ macro_rules! impl_error_chain_processed {
320
320
EK : Into <$error_kind_name>;
321
321
}
322
322
323
- impl <T , E > $result_ext_name<T > for :: std:: result:: Result <T , E > where E : :: std:: error:: Error + Send + ' static {
323
+ impl <T , E > $result_ext_name<T > for :: std:: result:: Result <T , E > where E : :: std:: error:: Error + Send + Sync + ' static {
324
324
fn chain_err<F , EK >( self , callback: F ) -> :: std:: result:: Result <T , $error_name>
325
325
where F : FnOnce ( ) -> EK ,
326
326
EK : Into <$error_kind_name> {
0 commit comments