From ca1c317644f415871d1af6ca29415e8c80f77efa Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 3 Nov 2026 15:39:30 +0000 Subject: [PATCH] fix(tools): clippy-friendly scanline bound --- crates/tools/src/builder/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tools/src/builder/map.rs b/crates/tools/src/builder/map.rs index b2a37c0a7..ddcbcb310 100644 --- a/crates/tools/src/builder/map.rs +++ b/crates/tools/src/builder/map.rs @@ -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();