1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 13:37:48 +00:00

hashsum: simplify the println

This commit is contained in:
Sylvestre Ledru 2024-05-18 10:06:28 +02:00
parent a9a11f486e
commit ab2d2488a3

View file

@ -805,9 +805,9 @@ where
println!("{sum}"); println!("{sum}");
} else if options.zero { } else if options.zero {
// with zero, we don't escape the filename // with zero, we don't escape the filename
print!("{} {}{}\0", sum, binary_marker, filename.display()); print!("{sum} {binary_marker}{}\0", filename.display());
} else { } else {
println!("{}{} {}{}", prefix, sum, binary_marker, escaped_filename); println!("{prefix}{sum} {binary_marker}{escaped_filename}");
} }
} }
if bad_format > 0 && failed_cksum == 0 && correct_format == 0 && !options.status { if bad_format > 0 && failed_cksum == 0 && correct_format == 0 && !options.status {