diff --git a/src/error.rs b/src/error.rs index ff5549c..0e4f69c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -45,7 +45,7 @@ pub enum ErrorKind { #[derive(Debug)] pub struct Error { kind: ErrorKind, - cause: Option>, + cause: Option>, } impl fmt::Display for Error { @@ -88,7 +88,7 @@ impl Error { pub(crate) fn with_cause(kind: ErrorKind, cause: E) -> Self where - E: 'static + Send + StdError, + E: 'static + Send + Sync + StdError, { Self { kind,