From ea2034e8062f8db6b5ae74ca8aeab4e2ee08479f Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 2 Jan 2020 21:21:28 +0100 Subject: Clean up clippy warnings --- testing/benches/all.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'testing/benches/all.rs') diff --git a/testing/benches/all.rs b/testing/benches/all.rs index 3ce0812..9d605af 100644 --- a/testing/benches/all.rs +++ b/testing/benches/all.rs @@ -8,15 +8,15 @@ criterion_main!(benches); criterion_group!(benches, functions); fn functions(c: &mut Criterion) { - c.bench_function("Big table", |b| big_table(b, &100)); + c.bench_function("Big table", |b| big_table(b, 100)); c.bench_function("Teams", teams); } -fn big_table(b: &mut criterion::Bencher, size: &usize) { - let mut table = Vec::with_capacity(*size); - for _ in 0..*size { - let mut inner = Vec::with_capacity(*size); - for i in 0..*size { +fn big_table(b: &mut criterion::Bencher, size: usize) { + let mut table = Vec::with_capacity(size); + for _ in 0..size { + let mut inner = Vec::with_capacity(size); + for i in 0..size { inner.push(i); } table.push(inner); -- cgit