aboutsummaryrefslogtreecommitdiff
path: root/src/zip/error.rs
diff options
context:
space:
mode:
authorIgor Tolmachev <me@igorek.dev>2024-06-29 22:53:47 +0900
committerIgor Tolmachev <me@igorek.dev>2024-06-30 21:53:11 +0900
commit6d5f8f046b3b24e50cb1a0e7751c6bc9170ed9d1 (patch)
tree2ab77965a7c54b64e024a0fc3405b065ad54ea96 /src/zip/error.rs
parent51694e1f0b2730915e0a57ec6d8de503cf06ef9a (diff)
downloadarchivator-6d5f8f046b3b24e50cb1a0e7751c6bc9170ed9d1.tar.gz
archivator-6d5f8f046b3b24e50cb1a0e7751c6bc9170ed9d1.zip
Add `Clone` derive and edit trait types
Diffstat (limited to 'src/zip/error.rs')
-rw-r--r--src/zip/error.rs2
1 files changed, 2 insertions, 0 deletions
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 {
20 InvalidFileComment, 20 InvalidFileComment,
21 21
22 NegativeFileOffset, 22 NegativeFileOffset,
23 FileNotFound,
23} 24}
24 25
25impl From<ZipError> for ArchiveError<ZipError> { 26impl From<ZipError> for ArchiveError<ZipError> {
@@ -57,6 +58,7 @@ impl Display for ZipError {
57 Self::InvalidFileComment => write!(f, "Invalid file comment"), 58 Self::InvalidFileComment => write!(f, "Invalid file comment"),
58 59
59 Self::NegativeFileOffset => write!(f, "Negative file offset"), 60 Self::NegativeFileOffset => write!(f, "Negative file offset"),
61 Self::FileNotFound => write!(f, "File not found"),
60 } 62 }
61 } 63 }
62} 64}