diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-13 18:04:11 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-13 18:04:11 +0100 |
commit | eebe7b1939c110f6d766ca9844c4c6c81fd327e5 (patch) | |
tree | 96229cc1ed3657e4f168a2497e332ead8aa9734d /src/lib.rs | |
parent | 2a08d84120643db61cce60da67b012ea34e460df (diff) | |
download | mt_ser-eebe7b1939c110f6d766ca9844c4c6c81fd327e5.tar.xz |
Add Other variant to errors
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -28,6 +28,8 @@ pub enum SerializeError { IoError(#[from] io::Error), #[error("collection too big: {0}")] TooBig(#[from] TryFromIntError), + #[error("{0}")] + Other(String), } impl From<Infallible> for SerializeError { @@ -50,6 +52,8 @@ pub enum DeserializeError { InvalidEnumVariant(&'static str, u64), #[error("invalid constant - wanted: {0:?} - got: {1:?}")] InvalidConst(Box<dyn Debug>, Box<dyn Debug>), + #[error("{0}")] + Other(String), } impl From<Infallible> for DeserializeError { |