phone_number_regexps_and_mappings: fix ascii_digit_mappings to iterate over 0..=9

This commit is contained in:
Vlasislav Kashin
2025-07-09 13:34:16 +03:00
parent 7692433296
commit a597c1f908

View File

@@ -184,7 +184,7 @@ impl PhoneNumberRegExpsAndMappings {
// Simple ASCII digits map used to populate ALPHA_PHONE_MAPPINGS and // Simple ASCII digits map used to populate ALPHA_PHONE_MAPPINGS and
// ALL_PLUS_NUMBER_GROUPING_SYMBOLS. // ALL_PLUS_NUMBER_GROUPING_SYMBOLS.
let mut ascii_digit_mappings = HashMap::with_capacity(10); let mut ascii_digit_mappings = HashMap::with_capacity(10);
for d in '0'..'9' { for d in '0'..='9' {
ascii_digit_mappings.insert(d, d); ascii_digit_mappings.insert(d, d);
} }