Mark extract_compressed_from_readable & unzip to be pub(super)

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-12 16:56:41 +10:00
parent f82890cba3
commit b2c34137cc
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -54,7 +54,7 @@ fn untar<R: Read, V: TarEntriesVisitor>(
/// and only extract ones which filter returns `true`.
/// Note that this is a best-effort and it only works when `fmt`
/// is not `PkgFmt::Bin` or `PkgFmt::Zip`.
pub(crate) fn extract_compressed_from_readable<V: TarEntriesVisitor, R: BufRead>(
pub(super) fn extract_compressed_from_readable<V: TarEntriesVisitor, R: BufRead>(
dat: R,
fmt: TarBasedFmt,
path: &Path,
@ -99,7 +99,7 @@ pub(crate) fn extract_compressed_from_readable<V: TarEntriesVisitor, R: BufRead>
Ok(())
}
pub(crate) fn unzip(dat: File, dst: &Path) -> Result<(), BinstallError> {
pub(super) fn unzip(dat: File, dst: &Path) -> Result<(), BinstallError> {
debug!("Decompressing from zip archive to `{dst:?}`");
let mut zip = ZipArchive::new(dat)?;