Skip to content

Commit

Permalink
Fix clippy::unnecessary_first_then_check lint (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Oct 5, 2024
1 parent 63eb88b commit 40acae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bezpath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl BezPath {
/// ```
pub fn from_vec(v: Vec<PathEl>) -> BezPath {
debug_assert!(
v.first().is_none() || matches!(v.first(), Some(PathEl::MoveTo(_))),
v.is_empty() || matches!(v.first(), Some(PathEl::MoveTo(_))),
"BezPath must begin with MoveTo"
);
BezPath(v)
Expand Down

0 comments on commit 40acae8

Please sign in to comment.