From 62b85edef1441d35b7bff49ee795b34191a1d8c2 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sun, 8 Nov 2026 21:32:35 +0700 Subject: [PATCH] Write the Thai glyph check without a negated is_some_and Clippy's nonminimal_bool asks for is_none_or: a glyph with no outline range, or an empty one, is skipped as before. --- crates/fonts/src/pdf/thai.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/fonts/src/pdf/thai.rs b/crates/fonts/src/pdf/thai.rs index 0f950afc6d..950cd9edb0 100644 --- a/crates/fonts/src/pdf/thai.rs +++ b/crates/fonts/src/pdf/thai.rs @@ -133,7 +133,7 @@ pub fn recovered_thai_map(doc: &Document, font: &Dict) -> Option start) { + if loca.get_raw(at).zip(loca.get_raw(at + 1)).is_none_or(|(start, end)| end <= start) { continue; } if advances.advance_width(skrifa::GlyphId::new(u32::from(gid))).is_none_or(|w| (w == 0.0) != is_thai_mark(ch)) {