chore: Remove turbofish to fix a build error

This commit is contained in:
Chris Hennick 2024-05-09 17:12:52 -07:00 committed by GitHub
parent b0a2cbbe52
commit e9e5e01e3d
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -1759,7 +1759,7 @@ fn write_local_file_header<T: Write>(writer: &mut T, file: &ZipFileData) -> ZipR
if let Some(field) = file.extra_field {
extra_field_length += field.len();
}
match extra_field_length.try_into::<u16>() {
match extra_field_length.try_into() {
Ok(length_u16) => writer.write_u16_le(length_u16)?,
Err(_) => return Err(ZipError::InvalidArchive("Extra field is too long")),
}