diff options
author | Aria Shrimpton <me@aria.rip> | 2024-03-08 17:28:01 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-03-08 17:28:01 +0000 |
commit | be38ec4a6a85d9526ecedac36566f78522134edc (patch) | |
tree | fb24020013d700740afca405aab66aad7509d621 /src/crates | |
parent | 16f3516751a02ec44a4b5055fa1dc90f3d9a1fa3 (diff) |
more benchmark fixes(?)
Diffstat (limited to 'src/crates')
-rw-r--r-- | src/crates/benchmarker/src/indexable.rs | 9 |
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)); }, ); |