diff --git a/src/transformation/ear_clipping.rs b/src/transformation/ear_clipping.rs index faacc9cc..d4527a56 100644 --- a/src/transformation/ear_clipping.rs +++ b/src/transformation/ear_clipping.rs @@ -87,10 +87,7 @@ pub(crate) fn triangulate_ear_clipping(vertices: &[Point]) -> Option ear, - None => return None, - }; + let (ear_i, _) = maybe_ear?; // Deactivate the tip of the ear. vertex_info[ear_i].is_active = false;