diff options
Diffstat (limited to 'src/zip/error.rs')
| -rw-r--r-- | src/zip/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zip/error.rs b/src/zip/error.rs index 3acbf8c..5659f93 100644 --- a/src/zip/error.rs +++ b/src/zip/error.rs | |||
| @@ -21,6 +21,7 @@ pub enum ZipError { | |||
| 21 | 21 | ||
| 22 | NegativeFileOffset, | 22 | NegativeFileOffset, |
| 23 | FileNotFound, | 23 | FileNotFound, |
| 24 | CompressionDataIsUnseekable, | ||
| 24 | } | 25 | } |
| 25 | 26 | ||
| 26 | impl From<ZipError> for ArchiveError<ZipError> { | 27 | impl From<ZipError> for ArchiveError<ZipError> { |
| @@ -59,6 +60,7 @@ impl Display for ZipError { | |||
| 59 | 60 | ||
| 60 | Self::NegativeFileOffset => write!(f, "Negative file offset"), | 61 | Self::NegativeFileOffset => write!(f, "Negative file offset"), |
| 61 | Self::FileNotFound => write!(f, "File not found"), | 62 | Self::FileNotFound => write!(f, "File not found"), |
| 63 | Self::CompressionDataIsUnseekable => write!(f, "Compression data is unseekable"), | ||
| 62 | } | 64 | } |
| 63 | } | 65 | } |
| 64 | } | 66 | } |
