Skip to content

Commit

Permalink
Merge pull request #8 from liubin/fix/7-add-sync-marker-to-error-cause
Browse files Browse the repository at this point in the history
errors: add sync marker to error cause
  • Loading branch information
bergwolf authored Sep 14, 2020
2 parents 0aaf7db + 42685bb commit 3852d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub enum ErrorKind {
#[derive(Debug)]
pub struct Error {
kind: ErrorKind,
cause: Option<Box<StdError + Send>>,
cause: Option<Box<StdError + Send + Sync>>,
}

impl fmt::Display for Error {
Expand Down Expand Up @@ -88,7 +88,7 @@ impl Error {

pub(crate) fn with_cause<E>(kind: ErrorKind, cause: E) -> Self
where
E: 'static + Send + StdError,
E: 'static + Send + Sync + StdError,
{
Self {
kind,
Expand Down

0 comments on commit 3852d7c

Please sign in to comment.