Skip to content

Commit 4b88b98

Browse files
committed
Fix build warnings
1 parent 5fe2ea4 commit 4b88b98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/read.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ fn read_zipfile_from_fileblock<R: Read>(
20252025
block: ZipLocalEntryBlockAndFields,
20262026
reader: &mut R,
20272027
data_descriptor: Option<ZipDataDescriptor>,
2028-
) -> ZipResult<Option<ZipFile<R>>> {
2028+
) -> ZipResult<Option<ZipFile<'_, R>>> {
20292029
let mut result = ZipFileData::from_local_block(block, data_descriptor, reader)?;
20302030

20312031
match crate::read::parse_extra_field(&mut result) {
@@ -2091,7 +2091,7 @@ fn read_zipfile_from_fileblock<R: Read>(
20912091
/// * `external_attributes`: `unix_mode()`: will return None
20922092
pub fn read_zipfile_from_seekablestream<S: Read + Seek>(
20932093
reader: &mut S,
2094-
) -> ZipResult<Option<ZipFile<S>>> {
2094+
) -> ZipResult<Option<ZipFile<'_, S>>> {
20952095
let local_entry_block = read_local_fileblock(reader)?;
20962096
let local_entry_block = match local_entry_block {
20972097
Some(local_entry_block) => local_entry_block,

0 commit comments

Comments
 (0)