From 9b7421f87fe219347759b7498e776d2ce29b40fb Mon Sep 17 00:00:00 2001 From: Ken Hoover Date: Mon, 9 Sep 2024 19:11:24 -0700 Subject: [PATCH] Fix fmt --- benches/distance_transform.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/benches/distance_transform.rs b/benches/distance_transform.rs index 9676b7e..aaa7622 100644 --- a/benches/distance_transform.rs +++ b/benches/distance_transform.rs @@ -10,12 +10,20 @@ mod benches { #[bench] fn bench_chebyshev_distance_transform(b: &mut Bencher) { let mut terrain = LocalRoomTerrain::new_from_bits(Box::new([0; 2500])); - b.iter(|| black_box(chebyshev_distance_transform_from_terrain(&*black_box(&mut terrain)))); + b.iter(|| { + black_box(chebyshev_distance_transform_from_terrain(&*black_box( + &mut terrain, + ))) + }); } #[bench] fn bench_manhattan_distance_transform(b: &mut Bencher) { let mut terrain = LocalRoomTerrain::new_from_bits(Box::new([0; 2500])); - b.iter(|| black_box(manhattan_distance_transform_from_terrain(&*black_box(&mut terrain)))); + b.iter(|| { + black_box(manhattan_distance_transform_from_terrain(&*black_box( + &mut terrain, + ))) + }); } }