From 1f3bbce33c412f21cafe513150f3dfe8ff11c572 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Sat, 16 Jun 2018 13:23:12 +0200 Subject: [PATCH] Bench closure should return the result --- benches/core/matrix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benches/core/matrix.rs b/benches/core/matrix.rs index 7fe65481..1103858a 100644 --- a/benches/core/matrix.rs +++ b/benches/core/matrix.rs @@ -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 - }); + }) }) }