From afb8ab448949eb19e09e1bdb4b263dc487a9be21 Mon Sep 17 00:00:00 2001 From: Igor Tolmachev Date: Fri, 21 Jun 2024 02:11:16 +0900 Subject: Implement deserialize Remove bincode crate and replace it by own written serializer --- src/error.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index 9252762..7172d04 100644 --- a/src/error.rs +++ b/src/error.rs @@ -27,15 +27,7 @@ impl Display for ArchiveError { } } -impl Error for ArchiveError { - fn source(&self) -> Option<&(dyn Error + 'static)> { - match self { - Self::IO { error } => Some(error), - Self::Serde { .. } => None, - Self::Archivator { module, error } => None, - } - } -} +impl Error for ArchiveError {} impl serde::ser::Error for ArchiveError { fn custom(msg: T) -> Self { -- cgit v1.2.3