Fill: name the Random Fill path segment type for clippy (#17431)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
David MannandClaude Opus 5.5 committed 2026-11-30 20:32:50 +01:00
1 parent 5b860fe375
commit dc26febbc2
1 file changed
+4 -1
+4 -1
View File
@@ -353,8 +353,11 @@ struct Placed {
angle: f64,
}
/// One straight piece of a path: its start, its end and its length.
type Segment = ((f64, f64), (f64, f64), f64);
/// The straight pieces of `lines` with their lengths, closed lines closing back to their start.
fn segments(lines: &[Polyline]) -> Vec<((f64, f64), (f64, f64), f64)> {
fn segments(lines: &[Polyline]) -> Vec<Segment> {
let mut out = Vec::new();
for line in lines {
let closing = if line.closed { line.pts.last().zip(line.pts.first()).map(|(a, b)| (*a, *b)) } else { None };