Skip to content

Commit

Permalink
allow private bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jul 16, 2024
1 parent fb37849 commit 7223f67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unstable/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ mod sealed_data {
#[doc(hidden)]
/* NB: This should be allow(private_interfaces), but that's currently unstable. */
#[allow(warnings)]
pub trait ArchiveData {
pub(crate) trait ArchiveData {
fn data(&self) -> &ZipFileData;
}
}

#[allow(private_bounds)]
pub trait ArchiveEntry: Read + sealed_data::ArchiveData {
/// Get the version of the file
fn version_made_by(&self) -> (u8, u8) {
Expand Down

0 comments on commit 7223f67

Please sign in to comment.