Skip to content

Commit

Permalink
allow(private_interfaces) -> allow(warnings)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jul 16, 2024
1 parent c360b15 commit 8c7cae1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/unstable/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ mod sealed_data {
use super::ZipFileData;

#[doc(hidden)]
#[allow(private_interfaces)]
/* 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 @@ -264,7 +265,7 @@ pub trait ArchiveEntry: Read + sealed_data::ArchiveData {
}

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

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

impl sealed_data::ArchiveData for ZipStreamFileMetadata {
#[allow(private_interfaces)]
#[allow(warnings)]
fn data(&self) -> &ZipFileData {
let Self(data) = self;
data
Expand Down

0 comments on commit 8c7cae1

Please sign in to comment.