From ab2d2488a3b1fadd7bf0fc706437883989e5b983 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 18 May 2024 10:06:28 +0200 Subject: [PATCH] hashsum: simplify the println --- src/uu/hashsum/src/hashsum.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/hashsum/src/hashsum.rs b/src/uu/hashsum/src/hashsum.rs index 71923009e..892f3a15b 100644 --- a/src/uu/hashsum/src/hashsum.rs +++ b/src/uu/hashsum/src/hashsum.rs @@ -805,9 +805,9 @@ where println!("{sum}"); } else if options.zero { // with zero, we don't escape the filename - print!("{} {}{}\0", sum, binary_marker, filename.display()); + print!("{sum} {binary_marker}{}\0", filename.display()); } 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 {