From be38ec4a6a85d9526ecedac36566f78522134edc Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Fri, 8 Mar 2024 17:28:01 +0000 Subject: more benchmark fixes(?) --- src/crates/benchmarker/src/indexable.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') 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)); }, ); -- cgit v1.2.3