Bench closure should return the result

This commit is contained in:
Thomas Forgione 2018-06-16 13:23:12 +02:00 committed by Sébastien Crozet
parent b1616e236c
commit 1f3bbce33c
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ fn mat100_from_fn(bench: &mut Bencher) {
bench.iter(|| {
DMatrix::from_fn(100, 100, |a, b| {
a + b
});
})
})
}
@ -201,6 +201,6 @@ fn mat500_from_fn(bench: &mut Bencher) {
bench.iter(|| {
DMatrix::from_fn(500, 500, |a, b| {
a + b
});
})
})
}