diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-13 20:01:25 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-13 20:01:25 +0100 |
commit | 2197857cd5561babfa42c744b935c9203721240e (patch) | |
tree | f7f6159842810fc4dae5eb2eb3edb7ee29cc5685 /src/lib.rs | |
parent | 87e5c7b20c9832d9151a9c3fb2dd37a6e96100bf (diff) | |
download | mt_ser-2197857cd5561babfa42c744b935c9203721240e.tar.xz |
Support string repr
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -48,8 +48,8 @@ pub enum DeserializeError { TooBig(#[from] TryFromIntError), #[error("invalid UTF-16: {0}")] InvalidUtf16(#[from] std::char::DecodeUtf16Error), - #[error("invalid {0} enum variant {1}")] - InvalidEnumVariant(&'static str, u64), + #[error("invalid {0} enum variant {1:?}")] + InvalidEnum(&'static str, Box<dyn Debug>), #[error("invalid constant - wanted: {0:?} - got: {1:?}")] InvalidConst(Box<dyn Debug>, Box<dyn Debug>), #[error("{0}")] |