From 028cafa52e245d98c2ac3f8fd7b9a951652cd09e Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sat, 24 Oct 2026 04:15:11 +0700 Subject: [PATCH] Scribble: the row loop's stop compares with partial_cmp (also stops on NaN; clippy) --- crates/effects/src/stylize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/effects/src/stylize.rs b/crates/effects/src/stylize.rs index 2079979b9..bdb5f8623 100644 --- a/crates/effects/src/stylize.rs +++ b/crates/effects/src/stylize.rs @@ -189,7 +189,7 @@ pub fn scribble(path: &PathData, b: Rect, p: &Value) -> PathData { // would never move it. while row <= 2001 { let y = y0 + step / 2.0 + row as f64 * step; - if !(y < y1) { + if y.partial_cmp(&y1) != Some(std::cmp::Ordering::Less) { break; } let mut xs: Vec = vec![];