From 9c0e544e79a4f7874dab449674a11d899bf61963 Mon Sep 17 00:00:00 2001 From: Igor Tolmachev Date: Tue, 16 Jul 2024 20:08:01 +0900 Subject: Add tests and fix bugs --- src/zip/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/zip/error.rs') diff --git a/src/zip/error.rs b/src/zip/error.rs index a4b8c2b..525a67b 100644 --- a/src/zip/error.rs +++ b/src/zip/error.rs @@ -4,9 +4,9 @@ use std::fmt::Display; pub type ZipResult = ArchiveResult; -#[derive(Debug)] +#[derive(Debug, PartialEq, Eq)] pub enum ZipError { - EOCDRNotFound, + EocdrNotFound, InvalidEOCDR64Signature, InvalidFileHeaderSignature, InvalidCDRSignature, @@ -38,7 +38,7 @@ impl From for ArchiveError { impl Display for ZipError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Self::EOCDRNotFound => write!(f, "End of central directory record not found"), + Self::EocdrNotFound => write!(f, "End of central directory record not found"), Self::InvalidEOCDR64Signature => { write!( f, -- cgit v1.2.3