Skip to content

Commit

Permalink
Fix clippy::question_mark lint
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jan 10, 2025
1 parent 64ce3d3 commit 7614810
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/transformation/ear_clipping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ pub(crate) fn triangulate_ear_clipping(vertices: &[Point<Real>]) -> Option<Vec<[
});

// If we found an ear, clip it. Else the algorithm failed.
let (ear_i, _) = match maybe_ear {
Some(ear) => ear,
None => return None,
};
let (ear_i, _) = maybe_ear?;

// Deactivate the tip of the ear.
vertex_info[ear_i].is_active = false;
Expand Down

0 comments on commit 7614810

Please sign in to comment.