aboutsummaryrefslogtreecommitdiffstats
path: root/testing/benches
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-01-02 21:21:28 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-01-02 22:58:13 +0100
commitea2034e8062f8db6b5ae74ca8aeab4e2ee08479f (patch)
tree207b103539bacd4147c1ee274d3a1aa4938b7853 /testing/benches
parent9085e1e3dd0ae9924433c6e5166c33e0f6d2a283 (diff)
downloadaskama-ea2034e8062f8db6b5ae74ca8aeab4e2ee08479f.tar.gz
askama-ea2034e8062f8db6b5ae74ca8aeab4e2ee08479f.tar.bz2
askama-ea2034e8062f8db6b5ae74ca8aeab4e2ee08479f.zip
Clean up clippy warnings
Diffstat (limited to 'testing/benches')
-rw-r--r--testing/benches/all.rs12
1 files changed, 6 insertions, 6 deletions
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);