style: Remove unneeded mut

This commit is contained in:
Chris Hennick 2024-06-13 14:52:46 -07:00
parent 3eb2a0464b
commit 14c590740e
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -648,7 +648,7 @@ impl<R: Read + Seek> ZipArchive<R> {
cde_start_pos: u64, cde_start_pos: u64,
) -> ZipResult<Shared> { ) -> ZipResult<Shared> {
// Check if file has a zip64 footer // Check if file has a zip64 footer
let mut results = Self::get_directory_info_zip64(&config, reader, footer, cde_start_pos) let results = Self::get_directory_info_zip64(&config, reader, footer, cde_start_pos)
.unwrap_or_else(|e| vec![Err(e)]); .unwrap_or_else(|e| vec![Err(e)]);
let mut invalid_errors = Vec::new(); let mut invalid_errors = Vec::new();
let mut unsupported_errors = Vec::new(); let mut unsupported_errors = Vec::new();
@ -725,9 +725,9 @@ impl<R: Read + Seek> ZipArchive<R> {
fn sort_result( fn sort_result(
result: Result<Shared, ZipError>, result: Result<Shared, ZipError>,
mut invalid_errors: &mut Vec<ZipError>, invalid_errors: &mut Vec<ZipError>,
mut unsupported_errors: &mut Vec<ZipError>, unsupported_errors: &mut Vec<ZipError>,
mut ok_results: &mut Vec<Shared>, ok_results: &mut Vec<Shared>,
) { ) {
match result { match result {
Err(ZipError::UnsupportedArchive(e)) => { Err(ZipError::UnsupportedArchive(e)) => {