summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-19 17:46:48 +0100
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-19 17:46:48 +0100
commit6d2ddea09743df36c32337a05cf1364576adba68 (patch)
tree6bc2155800ed65d38f8899845fca68ffb1b57067 /src
parent3561472c60acfeda2dadb477a1da4afd287ab30a (diff)
downloadmt_ser-6d2ddea09743df36c32337a05cf1364576adba68.tar.xz
Guarantee Send and Sync for DeserializeError
Diffstat (limited to 'src')
-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),
}