We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0aaf7db + 42685bb commit 3852d7cCopy full SHA for 3852d7c
src/error.rs
@@ -45,7 +45,7 @@ pub enum ErrorKind {
45
#[derive(Debug)]
46
pub struct Error {
47
kind: ErrorKind,
48
- cause: Option<Box<StdError + Send>>,
+ cause: Option<Box<StdError + Send + Sync>>,
49
}
50
51
impl fmt::Display for Error {
@@ -88,7 +88,7 @@ impl Error {
88
89
pub(crate) fn with_cause<E>(kind: ErrorKind, cause: E) -> Self
90
where
91
- E: 'static + Send + StdError,
+ E: 'static + Send + Sync + StdError,
92
{
93
Self {
94
kind,
0 commit comments