From 4ce57911647eae9dd46c786fad15a612fcf4eb8c Mon Sep 17 00:00:00 2001 From: zhanghar Date: Thu, 25 Feb 2021 23:50:31 -0500 Subject: [PATCH] chore: use pub(crate) for header parsing used internally by the appendable ZipWriter --- src/read.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/read.rs b/src/read.rs index 0ce37c0a..4f103522 100644 --- a/src/read.rs +++ b/src/read.rs @@ -209,7 +209,7 @@ fn make_reader<'a>( impl ZipArchive { /// Get the directory start offset and number of files. This is done in a /// separate function to ease the control flow design. - pub fn get_directory_counts( + pub(crate) fn get_directory_counts( reader: &mut R, footer: &spec::CentralDirectoryEnd, cde_start_pos: u64, @@ -515,7 +515,7 @@ fn unsupported_zip_error(detail: &'static str) -> ZipResult { } /// Parse a central directory entry to collect the information for the file. -pub fn central_header_to_zip_file( +pub(crate) fn central_header_to_zip_file( reader: &mut R, archive_offset: u64, ) -> ZipResult {