From 6d5f8f046b3b24e50cb1a0e7751c6bc9170ed9d1 Mon Sep 17 00:00:00 2001 From: Igor Tolmachev Date: Sat, 29 Jun 2024 22:53:47 +0900 Subject: Add `Clone` derive and edit trait types --- src/zip/error.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/zip/error.rs') diff --git a/src/zip/error.rs b/src/zip/error.rs index d82de78..3acbf8c 100644 --- a/src/zip/error.rs +++ b/src/zip/error.rs @@ -20,6 +20,7 @@ pub enum ZipError { InvalidFileComment, NegativeFileOffset, + FileNotFound, } impl From for ArchiveError { @@ -57,6 +58,7 @@ impl Display for ZipError { Self::InvalidFileComment => write!(f, "Invalid file comment"), Self::NegativeFileOffset => write!(f, "Negative file offset"), + Self::FileNotFound => write!(f, "File not found"), } } } -- cgit v1.2.3