Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Aug 9, 2023
1 parent e644c97 commit 02996f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/triangulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl Triangulation {
// Check if a point is in a polygon, first by checking its AABB, then by checking the number of times
// a ray from the point to the top of the AABB intersects the polygon.
#[inline]
fn in_polygon(point: Vec2, edges: &Vec<(Vec2, Vec2)>, aabb: (Vec2, Vec2)) -> bool {
fn in_polygon(point: Vec2, edges: &[(Vec2, Vec2)], aabb: (Vec2, Vec2)) -> bool {
if point.x < aabb.0.x || point.x > aabb.1.x || point.y < aabb.0.y || point.y > aabb.1.y {
return false;
}
Expand Down

0 comments on commit 02996f7

Please sign in to comment.