summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-13 18:04:11 +0100
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-13 18:04:11 +0100
commiteebe7b1939c110f6d766ca9844c4c6c81fd327e5 (patch)
tree96229cc1ed3657e4f168a2497e332ead8aa9734d /src/lib.rs
parent2a08d84120643db61cce60da67b012ea34e460df (diff)
downloadmt_ser-eebe7b1939c110f6d766ca9844c4c6c81fd327e5.tar.xz
Add Other variant to errors
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3a84f78..2aa5c5a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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 {