diff --git a/martin/src/srv/fonts.rs b/martin/src/srv/fonts.rs index 990d2ed68..47d2d7514 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_ascii_digit()).collect(); + let digits: String = input.chars().take_while(char::is_ascii_digit).collect(); if digits.is_empty() { Err("No leading digits found") } else {