@@ -87,7 +87,7 @@ macro_rules! impl_error_chain_processed {
8787
8888 fn with_chain<E , K >( error: E , kind: K )
8989 -> Self
90- where E : :: std:: error:: Error + Send + ' static ,
90+ where E : :: std:: error:: Error + Send + Sync + ' static ,
9191 K : Into <Self :: ErrorKind >
9292 {
9393 Self :: with_chain( error, kind)
@@ -129,14 +129,14 @@ macro_rules! impl_error_chain_processed {
129129 /// Constructs a chained error from another error and a kind, and generates a backtrace.
130130 pub fn with_chain<E , K >( error: E , kind: K )
131131 -> $error_name
132- where E : :: std:: error:: Error + Send + ' static ,
132+ where E : :: std:: error:: Error + Send + Sync + ' static ,
133133 K : Into <$error_kind_name>
134134 {
135135 $error_name:: with_boxed_chain( Box :: new( error) , kind)
136136 }
137137
138138 /// 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 )
140140 -> $error_name
141141 where K : Into <$error_kind_name>
142142 {
@@ -320,7 +320,7 @@ macro_rules! impl_error_chain_processed {
320320 EK : Into <$error_kind_name>;
321321 }
322322
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 {
324324 fn chain_err<F , EK >( self , callback: F ) -> :: std:: result:: Result <T , $error_name>
325325 where F : FnOnce ( ) -> EK ,
326326 EK : Into <$error_kind_name> {
0 commit comments