From 7614810ea155c254ee4318c8e8a0654f9682067f Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 11 Jan 2025 04:06:32 +0700 Subject: [PATCH] Fix `clippy::question_mark` lint --- src/transformation/ear_clipping.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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;