Skip to content

Commit

Permalink
clippy: Fix useless_vec warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Aug 31, 2023
1 parent 3d05ef6 commit 9a48321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cubicbez.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit 9a48321

Please sign in to comment.