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 {