Skip to content

Commit

Permalink
fix private bounds on stable
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jul 16, 2024
1 parent fb37849 commit 872bd35
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/crc32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ impl<R> Crc32Reader<R> {
}
}

#[allow(dead_code)]
pub fn into_inner(self) -> R {
self.inner
}
Expand Down
4 changes: 2 additions & 2 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,15 +421,15 @@ pub const MIN_VERSION: u8 = 10;
pub const DEFAULT_VERSION: u8 = 45;

#[derive(Debug, Copy, Clone)]
pub(crate) struct AesModeInfo {
pub struct AesModeInfo {
pub aes_mode: AesMode,
pub vendor_version: AesVendorVersion,
pub compression_method: CompressionMethod,
}

/// Structure representing a ZIP file.
#[derive(Debug, Clone, Default)]
pub(crate) struct ZipFileData {
pub struct ZipFileData {
/// Compatibility of the file attribute information
pub system: System,
/// Specification version
Expand Down
5 changes: 0 additions & 5 deletions src/unstable/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ mod sealed_data {
use super::ZipFileData;

#[doc(hidden)]
/* NB: This should be allow(private_interfaces), but that's currently unstable. */
#[allow(warnings)]
pub trait ArchiveData {
fn data(&self) -> &ZipFileData;
}
Expand Down Expand Up @@ -266,7 +264,6 @@ pub trait ArchiveEntry: Read + sealed_data::ArchiveData {
}

impl<'a, R> sealed_data::ArchiveData for ZipEntry<'a, R> {
#[allow(warnings)]
fn data(&self) -> &ZipFileData {
self.data
}
Expand Down Expand Up @@ -727,7 +724,6 @@ pub mod streaming {
}

impl<R> sealed_data::ArchiveData for StreamingZipEntry<R> {
#[allow(warnings)]
fn data(&self) -> &ZipFileData {
&self.data
}
Expand All @@ -740,7 +736,6 @@ pub mod streaming {
pub struct ZipStreamFileMetadata(ZipFileData);

impl sealed_data::ArchiveData for ZipStreamFileMetadata {
#[allow(warnings)]
fn data(&self) -> &ZipFileData {
let Self(data) = self;
data
Expand Down
1 change: 1 addition & 0 deletions src/zipcrypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ impl<R: std::io::Read> std::io::Read for ZipCryptoReaderValid<R> {

impl<R> ZipCryptoReaderValid<R> {
/// Consumes this decoder, returning the underlying reader.
#[allow(dead_code)]
pub fn into_inner(self) -> R {
self.reader.file
}
Expand Down

0 comments on commit 872bd35

Please sign in to comment.