From b2c34137ccc70b9c2ea1bebf1161fff852996ec9 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sun, 12 Jun 2022 16:56:41 +1000 Subject: [PATCH] Mark `extract_compressed_from_readable` & `unzip` to be `pub(super)` Signed-off-by: Jiahao XU --- src/helpers/extracter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/extracter.rs b/src/helpers/extracter.rs index 78d858c3..c24634cf 100644 --- a/src/helpers/extracter.rs +++ b/src/helpers/extracter.rs @@ -54,7 +54,7 @@ fn untar( /// 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( +pub(super) fn extract_compressed_from_readable( dat: R, fmt: TarBasedFmt, path: &Path, @@ -99,7 +99,7 @@ pub(crate) fn extract_compressed_from_readable 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)?;