summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b2aebc8..7cce3b6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -52,9 +52,9 @@ pub enum DeserializeError {
#[error("invalid UTF-16: {0}")]
InvalidUtf16(#[from] std::char::DecodeUtf16Error),
#[error("invalid {0} enum variant {1:?}")]
- InvalidEnum(&'static str, Box<dyn Debug>),
+ InvalidEnum(&'static str, Box<dyn Debug + Send + Sync>),
#[error("invalid constant - wanted: {0:?} - got: {1:?}")]
- InvalidConst(Box<dyn Debug>, Box<dyn Debug>),
+ InvalidConst(Box<dyn Debug + Send + Sync>, Box<dyn Debug + Send + Sync>),
#[error("{0}")]
Other(String),
}