Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hakolao committed Mar 24, 2024
1 parent 1c06da9 commit f6735a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shape/convex_polygon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ impl ConvexPolygon {
let new_length = points.len() - nremoved;
points.truncate(new_length);
normals.truncate(new_length);
if points.len() > 2 {

if points.len() > 2 {
Some(ConvexPolygon { points, normals })
} else {
None
Expand Down

0 comments on commit f6735a2

Please sign in to comment.