We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6690ba commit 28b88a0Copy full SHA for 28b88a0
benches/p1814.rs
@@ -37,11 +37,11 @@ fn bench_rev_implementations(c: &mut Criterion) {
37
let test_numbers = [42, 1234, 9876543, 1_000_000_000];
38
39
for &num in &test_numbers {
40
- group.bench_function(format!("loop_based_{}", num), |b| {
+ group.bench_function(format!("loop_based_{num}"), |b| {
41
b.iter(|| rev_loop(black_box(num)))
42
});
43
44
- group.bench_function(format!("string_based_{}", num), |b| {
+ group.bench_function(format!("string_based_{num}"), |b| {
45
b.iter(|| rev_string(black_box(num)))
46
47
}
0 commit comments