From 32dc6d203afa1b0ff60230c1d53576fd39759fe0 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 31 Aug 2023 13:10:34 +0700 Subject: [PATCH] clippy: Fix `useless_vec` warnings. --- src/cubicbez.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cubicbez.rs b/src/cubicbez.rs index cd295ab3..8128606e 100644 --- a/src/cubicbez.rs +++ b/src/cubicbez.rs @@ -970,7 +970,7 @@ mod tests { let spline = c1.approx_spline_n(2, 343.0); assert!(spline.is_some()); let spline = spline.unwrap(); - let expected = vec![ + let expected = [ Point::new(550.0, 258.0), Point::new(920.5, 426.0), Point::new(2005.25, 1769.25), @@ -982,7 +982,7 @@ mod tests { } let spline = c1.approx_spline(5.0); - let expected = vec![ + let expected = [ Point::new(550.0, 258.0), Point::new(673.5, 314.0), Point::new(984.8777777777776, 584.2666666666667),