Skip to content

Commit

Permalink
Fix clippy::match_wildcard_for_single_variants lints (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Feb 19, 2025
1 parent b487bda commit ee41586
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bezpath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ impl BezPath {
PathEl::LineTo(p) => p,
PathEl::QuadTo(_, p2) => p2,
PathEl::CurveTo(_, _, p3) => p3,
_ => return None,
PathEl::ClosePath => return None,
};
match self.0[ix] {
PathEl::LineTo(p) => Some(PathSeg::Line(Line::new(last, p))),
Expand All @@ -335,7 +335,7 @@ impl BezPath {
}
_ => None,
}),
_ => None,
PathEl::MoveTo(_) => None,
}
}

Expand Down Expand Up @@ -1355,7 +1355,7 @@ impl PathEl {
PathEl::LineTo(p1) => Some(*p1),
PathEl::QuadTo(_, p2) => Some(*p2),
PathEl::CurveTo(_, _, p3) => Some(*p3),
_ => None,
PathEl::ClosePath => None,
}
}
}
Expand Down

0 comments on commit ee41586

Please sign in to comment.