Skip to content

Commit 2fc930b

Browse files
committed
refactor(factor): use string interpolation in jemalloc stats logging
Replace positional placeholders with named parameters in println! macro for improved readability and consistency with modern Rust formatting.
1 parent dede6d0 commit 2fc930b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/uu/factor/benches/factor_bench.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ fn log_jemalloc_stats(label: &str) {
2424
let allocated = stats::allocated::read().unwrap();
2525
let resident = stats::resident::read().unwrap();
2626

27-
println!(
28-
"jemalloc {label}: allocated={} bytes, resident={} bytes",
29-
allocated, resident
30-
);
27+
println!("jemalloc {label}: allocated={allocated} bytes, resident={resident} bytes");
3128
}
3229

3330
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "freebsd")))]

0 commit comments

Comments
 (0)