mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-03 18:50:02 +00:00
Mark all internal types & fn as pub(crate)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
1c40848f51
commit
cc13a23b07
3 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ use crate::{BinstallError, PkgFmt};
|
|||
/// Extract files from the specified source onto the specified path.
|
||||
///
|
||||
/// * `fmt` - must not be `PkgFmt::Bin` or `PkgFmt::Zip`.
|
||||
pub fn extract_compressed_from_readable(
|
||||
pub(crate) fn extract_compressed_from_readable(
|
||||
dat: impl Read,
|
||||
fmt: PkgFmt,
|
||||
path: &Path,
|
||||
|
@ -66,7 +66,7 @@ pub fn extract_compressed_from_readable(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn unzip(dat: File, dst: &Path) -> Result<(), BinstallError> {
|
||||
pub(crate) fn unzip(dat: File, dst: &Path) -> Result<(), BinstallError> {
|
||||
debug!("Decompressing from zip archive to `{dst:?}`");
|
||||
|
||||
let mut zip = ZipArchive::new(dat)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue