fix(tools): clippy-friendly scanline bound

This commit is contained in:
Dylan M. Taylor
2026-11-03 23:29:35 +07:00
committed by bflatastic
parent 1597bc378b
commit ca1c317644
+1 -1
View File
@@ -454,7 +454,7 @@ pub fn hatch(path: &BezPath, gap: f64) -> BezPath {
// a 400th of the height, so 402 lines cover it.
for i in 0..402u32 {
let y = start + f64::from(i) * gap;
if !(y < y1) {
if y.partial_cmp(&y1) != Some(std::cmp::Ordering::Less) {
break;
}
xs.clear();