From 6d2ddea09743df36c32337a05cf1364576adba68 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Sun, 19 Feb 2023 17:46:48 +0100 Subject: [PATCH] Guarantee Send and Sync for DeserializeError --- src/lib.rs | 4 ++-- 1 file 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), + InvalidEnum(&'static str, Box), #[error("invalid constant - wanted: {0:?} - got: {1:?}")] - InvalidConst(Box, Box), + InvalidConst(Box, Box), #[error("{0}")] Other(String), } -- 2.44.0