From 895dbe8f8ea557cf092e2804c57cc74494110822 Mon Sep 17 00:00:00 2001 From: Benjamin Zeiss Date: Sun, 28 Jul 2024 15:47:35 +0200 Subject: [PATCH] Improved glyph url handling: accept arbitrary suffixes after {end} #1443 - Fixed clippy error --- martin/src/srv/fonts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/martin/src/srv/fonts.rs b/martin/src/srv/fonts.rs index 5ab4c03d8..990d2ed68 100644 --- a/martin/src/srv/fonts.rs +++ b/martin/src/srv/fonts.rs @@ -25,7 +25,7 @@ impl FontRequest { } fn parse_leading_digits(input: &str) -> Result { - let digits: String = input.chars().take_while(|c| c.is_digit(10)).collect(); + let digits: String = input.chars().take_while(|c| c.is_ascii_digit()).collect(); if digits.is_empty() { Err("No leading digits found") } else {