diff --git a/lib/src/archive/entry.rs b/lib/src/archive/entry.rs index 03a6397a..4056bcc1 100644 --- a/lib/src/archive/entry.rs +++ b/lib/src/archive/entry.rs @@ -72,9 +72,9 @@ impl Entry for ChunkEntry { } /// [`Read`] -pub struct EntryDataReader(DecompressReader<'static, DecryptReader>); +pub struct EntryReader(DecompressReader<'static, DecryptReader>); -impl Read for EntryDataReader { +impl Read for EntryReader { fn read(&mut self, buf: &mut [u8]) -> io::Result { self.0.read(buf) } @@ -102,7 +102,7 @@ impl TryFrom for ReadEntryContainer { } struct EntryIterator { - entry: EntryDataReader, + entry: EntryReader, } impl Iterator for EntryIterator { @@ -152,7 +152,7 @@ impl SolidReadEntry { let reader = decompress_reader(reader, self.header.compression)?; Ok(EntryIterator { - entry: EntryDataReader(reader), + entry: EntryReader(reader), }) } } @@ -345,7 +345,7 @@ impl Entry for NonSolidReadEntry { } impl ReadEntry for NonSolidReadEntry { - type Reader = EntryDataReader>>; + type Reader = EntryReader>>; #[inline] fn header(&self) -> &EntryHeader { @@ -364,7 +364,7 @@ impl ReadEntry for NonSolidReadEntry { } impl NonSolidReadEntry { - fn reader(self, password: Option<&str>) -> io::Result>>> { + fn reader(self, password: Option<&str>) -> io::Result>>> { let raw_data_reader = io::Cursor::new(self.data); let decrypt_reader = decrypt_reader( raw_data_reader, @@ -374,7 +374,7 @@ impl NonSolidReadEntry { password, )?; let reader = decompress_reader(decrypt_reader, self.header.compression)?; - Ok(EntryDataReader(reader)) + Ok(EntryReader(reader)) } }