Reintroduce error impl
This commit is contained in:
parent
d4b93b6895
commit
5a2e36df8c
1 changed files with 6 additions and 0 deletions
|
@ -34,3 +34,9 @@ pub enum ZipError {
|
||||||
#[error("invalid password for file in archive")]
|
#[error("invalid password for file in archive")]
|
||||||
InvalidPassword,
|
InvalidPassword,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<ZipError> for io::Error {
|
||||||
|
fn from(err: ZipError) -> io::Error {
|
||||||
|
io::Error::new(io::ErrorKind::Other, err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue