style: Fix a Clippy warning

This commit is contained in:
Chris Hennick 2024-06-15 15:18:52 -07:00
parent 5b285d7cbf
commit 58b982c99e
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -973,7 +973,7 @@ impl<W: Write + Seek> ZipWriter<W> {
}
if let Some(data) = central_extra_data {
let validation_result =
ExtendedFileOptions::validate_extra_data(&data, extra_data_end - zip64_start);
ExtendedFileOptions::validate_extra_data(data, extra_data_end - zip64_start);
if let Err(e) = validation_result {
let _ = self.abort_file();
return Err(e);