Skip to content

Commit 00f28eb

Browse files
mcroncedaviddrysdale
authored andcommitted
core/src/utils.rs: Make TinkError Sync
1 parent 9f659fd commit 00f28eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use std::error::Error;
2626
#[derive(Debug)]
2727
pub struct TinkError {
2828
msg: String,
29-
src: Option<Box<dyn Error + Send>>,
29+
src: Option<Box<dyn Error + Send + Sync>>,
3030
}
3131

3232
impl TinkError {
@@ -73,7 +73,7 @@ impl std::convert::From<String> for TinkError {
7373
/// ```
7474
pub fn wrap_err<T>(msg: &str, src: T) -> TinkError
7575
where
76-
T: Error + Send + 'static,
76+
T: Error + Send + Sync + 'static,
7777
{
7878
TinkError {
7979
msg: msg.to_string(),

0 commit comments

Comments
 (0)