From b78a334bd489d9546b5d78af3936ca7758b20f89 Mon Sep 17 00:00:00 2001 From: Taku Fukada Date: Wed, 21 Aug 2024 04:20:40 +0900 Subject: [PATCH] remove useless iteration from example (#16) --- examples/example.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/example.rs b/examples/example.rs index d4e9164..1138b6c 100644 --- a/examples/example.rs +++ b/examples/example.rs @@ -24,9 +24,7 @@ fn load_fixture(name: &str, num_triangles: usize, expected_deviation: f64) { // earcut let mut triangles = vec![]; let mut earcut = Earcut::new(); - for _ in 0..500 { - earcut.earcut(vertices.iter().copied(), &hole_indices, &mut triangles); - } + earcut.earcut(vertices.iter().copied(), &hole_indices, &mut triangles); // check assert!(triangles.len() == num_triangles * 3);