mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
chore: manual inline formatting
Minor manual cleanup - inlined many format args. This makes the code a bit more readable, and helps spot a few inefficiencies and possible bugs. Note that `&foo` in a `format!` parameter results in a 6% extra performance cost, and does not get inlined by the compiler (yet).
This commit is contained in:
parent
b7bf8c9467
commit
982805d3cd
29 changed files with 133 additions and 183 deletions
|
@ -130,10 +130,10 @@ fuzz_target!(|_data: &[u8]| {
|
|||
if let Ok(checksum_file_path) =
|
||||
generate_checksum_file(algo, &file_path, &selected_digest_opts)
|
||||
{
|
||||
print_test_begin(format!("cksum {:?}", args));
|
||||
print_test_begin(format!("cksum {args:?}"));
|
||||
|
||||
if let Ok(content) = fs::read_to_string(&checksum_file_path) {
|
||||
println!("File content ({})", checksum_file_path);
|
||||
println!("File content ({checksum_file_path})");
|
||||
print_or_empty(&content);
|
||||
} else {
|
||||
eprintln!("Error reading the checksum file.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue