Skip to content

Commit

Permalink
Woops
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Jan 26, 2024
1 parent ebe7b47 commit 849ee09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/rc-zip/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub enum Error {
}

impl Error {
#[allow(unused)]
pub(crate) fn method_not_supported(method: Method) -> Self {
Self::Unsupported(UnsupportedError::MethodNotSupported(method))
}
Expand Down
4 changes: 2 additions & 2 deletions crates/rc-zip/src/reader/sync/entry_reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ where
if #[cfg(feature = "deflate")] {
Box::new(deflate_dec::mk_decoder(limited_reader))
} else {
return Err(Error::method_not_enabled(method));
return Err(Error::method_not_enabled(self.method));
}
}
}
Expand All @@ -276,7 +276,7 @@ where
if #[cfg(feature = "lzma")] {
Box::new(lzma_dec::mk_decoder(limited_reader,self.inner.uncompressed_size)?)
} else {
return Err(Error::method_not_enabled(method));
return Err(Error::method_not_enabled(self.method));
}
}
}
Expand Down

0 comments on commit 849ee09

Please sign in to comment.