From f3f419d0b443380b13afb2bdc6847a18b6aff04e Mon Sep 17 00:00:00 2001 From: clover caruso Date: Sat, 10 Oct 2026 22:26:59 -0700 Subject: [PATCH] chore: spell the single Thai font range as a slice Use slice::from_ref for the intentional one-range fallback list, avoiding Rust 1.99 Clippy interpreting it as an uncollected character range. Assisted-by: gpt-6.1-sol --- crates/snowbound/src/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/snowbound/src/web.rs b/crates/snowbound/src/web.rs index 0e171bbe17a798bc26560b39bb75606c031e3d60..0eebef76d5c8fce8e2cf0898d03a3bd9b1dad394 100644 --- a/crates/snowbound/src/web.rs +++ b/crates/snowbound/src/web.rs @@ -138,7 +138,7 @@ const FALLBACKS: [(&str, &[RangeInclusive]); 7] = [ ), ("NotoSansHebrew.ttf", &[0x590..=0x5ff, 0xfb1d..=0xfb4f]), ("NotoSansDevanagari.ttf", &[0x900..=0x97f, 0xa8e0..=0xa8ff]), - ("NotoSansThai.ttf", &[0xe00..=0xe7f]), + ("NotoSansThai.ttf", std::slice::from_ref(&(0xe00..=0xe7f))), ( "NotoSansSymbols2-Regular.otf", &[ -- 2.54.0