Skip to content

Commit 0faa26f

Browse files
committed
🚚 Rename internal struct
1 parent 0d1cb28 commit 0faa26f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/src/archive/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ impl<R: futures_io::AsyncRead + Unpin> futures_util::Stream for Entries<'_, R> {
413413
pub struct NormalEntries<'r, R> {
414414
reader: &'r mut Archive<R>,
415415
password: Option<&'r [u8]>,
416-
solid_iter: Option<crate::entry::IntoEntries>,
416+
solid_iter: Option<crate::entry::SolidIntoEntries>,
417417
}
418418

419419
impl<'r, R> NormalEntries<'r, R> {

lib/src/entry.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,11 @@ type BytesCursor = io::Cursor<Vec<u8>>;
282282
/// An iterator that moves out of a solid entry.
283283
///
284284
/// This struct is created by the `into_entries` method on [`SolidEntry`].
285-
pub(crate) struct IntoEntries(
285+
pub(crate) struct SolidIntoEntries(
286286
EntryReader<ChainReader<std::vec::IntoIter<BytesCursor>, BytesCursor>>,
287287
);
288288

289-
impl Iterator for IntoEntries {
289+
impl Iterator for SolidIntoEntries {
290290
type Item = io::Result<NormalEntry>;
291291

292292
#[inline]
@@ -434,7 +434,7 @@ where
434434
///
435435
/// This variant owns the underlying buffers, enabling streaming without borrowing from `self`.
436436
#[inline]
437-
pub(crate) fn into_entries(self, password: Option<&[u8]>) -> io::Result<IntoEntries> {
437+
pub(crate) fn into_entries(self, password: Option<&[u8]>) -> io::Result<SolidIntoEntries> {
438438
let bufs = self
439439
.data
440440
.into_iter()
@@ -449,7 +449,7 @@ where
449449
password,
450450
)?;
451451
let reader = decompress_reader(reader, self.header.compression)?;
452-
Ok(IntoEntries(EntryReader(reader)))
452+
Ok(SolidIntoEntries(EntryReader(reader)))
453453
}
454454
}
455455

0 commit comments

Comments
 (0)