commit
63a3e89ef8
1 changed files with 6 additions and 0 deletions
|
@ -34,3 +34,9 @@ pub enum ZipError {
|
|||
#[error("invalid password for file in archive")]
|
||||
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