Fix clippy lints
This commit is contained in:
parent
d089176030
commit
44d89ecff4
1 changed files with 2 additions and 2 deletions
|
|
@ -409,7 +409,7 @@ pub fn optimize(input: &InFile, output: &OutFile, opts: &Options) -> PngResult<(
|
||||||
))
|
))
|
||||||
})?;
|
})?;
|
||||||
if let Some(metadata_input) = &opt_metadata_preserved {
|
if let Some(metadata_input) = &opt_metadata_preserved {
|
||||||
copy_permissions(&metadata_input, &out_file)?;
|
copy_permissions(metadata_input, &out_file)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut buffer = BufWriter::new(out_file);
|
let mut buffer = BufWriter::new(out_file);
|
||||||
|
|
@ -427,7 +427,7 @@ pub fn optimize(input: &InFile, output: &OutFile, opts: &Options) -> PngResult<(
|
||||||
// force drop and thereby closing of file handle before modifying any timestamp
|
// force drop and thereby closing of file handle before modifying any timestamp
|
||||||
std::mem::drop(buffer);
|
std::mem::drop(buffer);
|
||||||
if let Some(metadata_input) = &opt_metadata_preserved {
|
if let Some(metadata_input) = &opt_metadata_preserved {
|
||||||
copy_times(&metadata_input, &output_path)?;
|
copy_times(metadata_input, output_path)?;
|
||||||
}
|
}
|
||||||
info!("Output: {}", output_path.display());
|
info!("Output: {}", output_path.display());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue