aboutsummaryrefslogtreecommitdiff
path: root/src/crates
diff options
context:
space:
mode:
Diffstat (limited to 'src/crates')
-rw-r--r--src/crates/benchmarker/src/indexable.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/crates/benchmarker/src/indexable.rs b/src/crates/benchmarker/src/indexable.rs
index 6fff998..2be28c6 100644
--- a/src/crates/benchmarker/src/indexable.rs
+++ b/src/crates/benchmarker/src/indexable.rs
@@ -34,8 +34,7 @@ where
c
},
|c| {
- let v = black_box(c.first());
- black_box(v);
+ black_box(c.first());
},
);
@@ -58,8 +57,7 @@ where
c
},
|c| {
- let v = black_box(c.last());
- black_box(v);
+ black_box(c.last());
},
);
@@ -82,8 +80,7 @@ where
(c, rng.gen_range(0..n))
},
|(c, idx)| {
- let v = black_box(c.nth(*idx));
- black_box(v);
+ black_box(c.nth(*idx));
},
);