Skip to content

Commit 872bd35

Browse files
fix private bounds on stable
1 parent fb37849 commit 872bd35

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

src/crc32.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ impl<R> Crc32Reader<R> {
3232
}
3333
}
3434

35+
#[allow(dead_code)]
3536
pub fn into_inner(self) -> R {
3637
self.inner
3738
}

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,15 +421,15 @@ pub const MIN_VERSION: u8 = 10;
421421
pub const DEFAULT_VERSION: u8 = 45;
422422

423423
#[derive(Debug, Copy, Clone)]
424-
pub(crate) struct AesModeInfo {
424+
pub struct AesModeInfo {
425425
pub aes_mode: AesMode,
426426
pub vendor_version: AesVendorVersion,
427427
pub compression_method: CompressionMethod,
428428
}
429429

430430
/// Structure representing a ZIP file.
431431
#[derive(Debug, Clone, Default)]
432-
pub(crate) struct ZipFileData {
432+
pub struct ZipFileData {
433433
/// Compatibility of the file attribute information
434434
pub system: System,
435435
/// Specification version

src/unstable/read.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ mod sealed_data {
120120
use super::ZipFileData;
121121

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

268266
impl<'a, R> sealed_data::ArchiveData for ZipEntry<'a, R> {
269-
#[allow(warnings)]
270267
fn data(&self) -> &ZipFileData {
271268
self.data
272269
}
@@ -727,7 +724,6 @@ pub mod streaming {
727724
}
728725

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

742738
impl sealed_data::ArchiveData for ZipStreamFileMetadata {
743-
#[allow(warnings)]
744739
fn data(&self) -> &ZipFileData {
745740
let Self(data) = self;
746741
data

src/zipcrypto.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ impl<R: std::io::Read> std::io::Read for ZipCryptoReaderValid<R> {
204204

205205
impl<R> ZipCryptoReaderValid<R> {
206206
/// Consumes this decoder, returning the underlying reader.
207+
#[allow(dead_code)]
207208
pub fn into_inner(self) -> R {
208209
self.reader.file
209210
}

0 commit comments

Comments
 (0)