Skip to content

Commit

Permalink
Fix clippy lint fail in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuckmccready committed Aug 28, 2023
1 parent 8243638 commit c666c36
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions cavalier_contours/tests/test_pline_basics.rs
Expand Up @@ -899,19 +899,17 @@ fn rotate_start() {
{
// empty polyline
let polyline = Polyline::new_closed();
assert!(matches!(
polyline.rotate_start(0, Vector2::new(0.0, 0.0), 1e-5),
None
));
assert!(polyline
.rotate_start(0, Vector2::new(0.0, 0.0), 1e-5)
.is_none());
}

{
// single vertex polyline
let polyline = pline_closed![(1.0, 0.0, 0.0)];
assert!(matches!(
polyline.rotate_start(0, Vector2::new(0.0, 0.0), 1e-5),
None
));
assert!(polyline
.rotate_start(0, Vector2::new(0.0, 0.0), 1e-5)
.is_none());
}

{
Expand All @@ -922,10 +920,9 @@ fn rotate_start() {
(1.0, 1.0, 0.2),
(0.0, 1.0, -0.1),
];
assert!(matches!(
polyline.rotate_start(0, Vector2::new(0.0, 0.0), 1e-5),
None
));
assert!(polyline
.rotate_start(0, Vector2::new(0.0, 0.0), 1e-5)
.is_none());
}

{
Expand Down

0 comments on commit c666c36

Please sign in to comment.