From da19f0174b99db02e50d2f1db8aae6245d7981ca Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Wed, 25 Nov 2020 22:16:46 +0100 Subject: Fix clippy lints and add polygon tool button icon --- src/math/polygon/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math') diff --git a/src/math/polygon/mod.rs b/src/math/polygon/mod.rs index e1f15c5..ed48751 100644 --- a/src/math/polygon/mod.rs +++ b/src/math/polygon/mod.rs @@ -367,7 +367,7 @@ impl< * after another until finally connecting the last point to the first point in radians. Negative, * when the points in sum are right-turning, positive, when they are left-turning. */ -fn combined_angle(points: &Vec>) -> T { +fn combined_angle(points: &[Vec2]) -> T { let mut combined_angle = T::zero(); for i in 0..points.len() { let prev = (i + points.len() - 1) % points.len(); -- cgit v1.2.3-70-g09d2