Skip to content
Permalink
Browse files

Make chain-crypto bech32 errors Send + Sync

  • Loading branch information...
CodeSandwich committed May 14, 2019
1 parent b0f18cb commit fdc647bdc6926f040de5b86fe85159fbeea3e9a2
Showing with 2 additions and 2 deletions.
  1. +2 −2 chain-crypto/src/bech32.rs
@@ -39,11 +39,11 @@ pub enum Error {
expected: &'static str,
actual: String,
},
DataInvalid(Box<StdError + 'static>),
DataInvalid(Box<StdError + Send + Sync + 'static>),
}

impl Error {
pub fn data_invalid(cause: impl StdError + 'static) -> Self {
pub fn data_invalid(cause: impl StdError + Send + Sync + 'static) -> Self {
Error::DataInvalid(Box::new(cause))
}
}

0 comments on commit fdc647b

Please sign in to comment.
You can’t perform that action at this time.