chore: clippy

This commit is contained in:
Vukašin Vojinović 2026-03-14 23:32:47 +01:00 committed by Jacob Kauffmann
parent 3b1bc4430b
commit 6e2eafe16c
5 changed files with 38 additions and 47 deletions

View file

@ -762,13 +762,12 @@ impl Operation {
OperationError::from_err(e, &controller)
})?;
if let Ok(modified) = metadata.modified() {
if let Some(last_modified) =
if let Ok(modified) = metadata.modified()
&& let Some(last_modified) =
archive::system_time_to_zip_date_time(modified)
{
zip_options =
zip_options.last_modified_time(last_modified);
}
{
zip_options =
zip_options.last_modified_time(last_modified);
}
#[cfg(unix)]