Skip to content

Commit

Permalink
remove useless iteration from example (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscorn authored Aug 20, 2024
1 parent 178426a commit b78a334
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b78a334

Please sign in to comment.