Skip to content

Commit

Permalink
fix impl trait return
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jul 16, 2024
1 parent 8c7cae1 commit fb37849
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 @@ -31,6 +31,7 @@ use zstd::stream::read::Decoder as ZstdDecoder;

use std::io::{self, Read, Seek};
use std::path::PathBuf;
use std::slice;

pub(crate) enum EntryReader<R> {
Stored(R),
Expand Down Expand Up @@ -259,7 +260,7 @@ pub trait ArchiveEntry: Read + sealed_data::ArchiveData {
}

/// iterate through all extra fields
fn extra_data_fields(&self) -> impl Iterator<Item = &ExtraField> {
fn extra_data_fields(&self) -> slice::Iter<'_, ExtraField> {
self.data().extra_fields.iter()
}
}
Expand Down

0 comments on commit fb37849

Please sign in to comment.