WAV: Restrict visibility of some functions

This commit is contained in:
Serial 2022-08-22 22:37:45 -04:00
parent 4eb31023a3
commit 80f29cafef
No known key found for this signature in database
GPG key ID: DA95198DC17C4568
2 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,8 @@ pub(crate) mod aiff;
pub(crate) mod chunk;
pub(crate) mod wav;
// TODO: Expose `iff::{aiff, wav}` instead of combining both here
// Exports
pub use aiff::AiffFile;

View file

@ -12,7 +12,7 @@ use std::io::{Read, Seek, SeekFrom};
use byteorder::{LittleEndian, ReadBytesExt};
pub(in crate::iff) fn verify_wav<T>(data: &mut T) -> Result<()>
pub(super) fn verify_wav<T>(data: &mut T) -> Result<()>
where
T: Read + Seek,
{
@ -34,7 +34,7 @@ where
Ok(())
}
pub(crate) fn read_from<R>(data: &mut R, read_properties: bool) -> Result<WavFile>
pub(super) fn read_from<R>(data: &mut R, read_properties: bool) -> Result<WavFile>
where
R: Read + Seek,
{