From de8a9c599840a031baff8e29253e3bce86644c80 Mon Sep 17 00:00:00 2001 From: Marli Frost Date: Sun, 20 Mar 2022 19:01:43 +0000 Subject: [PATCH] fix: remove Shared from public API --- src/read.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/read.rs b/src/read.rs index 52fac86b..ff021af7 100644 --- a/src/read.rs +++ b/src/read.rs @@ -38,7 +38,7 @@ mod ffi { pub(crate) mod zip_archive { /// Extract immutable data from `ZipArchive` to make it cheap to clone #[derive(Debug)] - pub struct Shared { + pub(crate) struct Shared { pub(super) files: Vec, pub(super) names_map: super::HashMap, pub(super) offset: u64, @@ -72,7 +72,7 @@ pub(crate) mod zip_archive { } } -pub use zip_archive::{Shared, ZipArchive}; +pub use zip_archive::ZipArchive; #[allow(clippy::large_enum_variant)] enum CryptoReader<'a> { Plaintext(io::Take<&'a mut dyn Read>), @@ -423,7 +423,7 @@ impl ZipArchive { files.push(file); } - let shared = Arc::new(Shared { + let shared = Arc::new(zip_archive::Shared { files, names_map, offset: archive_offset,