From cbf4d460732c1bcbb6b3d9c8fc55c24d1beb380a Mon Sep 17 00:00:00 2001 From: odysa Date: Mon, 21 Nov 2022 06:33:52 -0600 Subject: [PATCH] feat: add DecodeError::Other (#602) --- src/error.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/error.rs b/src/error.rs index 6b671f5..9ef363b 100644 --- a/src/error.rs +++ b/src/error.rs @@ -178,6 +178,9 @@ pub enum DecodeError { additional: usize, }, + /// An uncommon error occurred, see the inner text for more information + Other(&'static str), + /// An uncommon error occurred, see the inner text for more information #[cfg(feature = "alloc")] OtherString(alloc::string::String),