Tweak output when not optimised (#765)

This commit is contained in:
andrews05 2026-01-13 07:48:10 +13:00 committed by GitHub
parent 155eeb3637
commit d48b147b3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -195,7 +195,7 @@ pub fn optimize(input: &InFile, output: &OutFile, opts: &Options) -> PngResult<(
(OutFile::Path { path, .. }, InFile::Path(input_path))
if path.as_ref().is_none_or(|p| p == input_path) =>
{
info!("{input}: Could not optimize further, no change written");
info!("Could not optimize further, no change written: {input}");
return Ok((in_length, in_length));
}
_ => {
@ -227,6 +227,7 @@ pub fn optimize(input: &InFile, output: &OutFile, opts: &Options) -> PngResult<(
buffer
.write_all(&optimized_output)
.map_err(|e| PngError::WriteFailed("stdout".into(), e))?;
info!("{savings}: stdout");
}
(
OutFile::Path {