update up to dec_from_char v0.2.0

This commit is contained in:
Vlasislav Kashin
2025-07-10 14:40:49 +03:00
parent e52a19e6c1
commit 464711df8c

View File

@@ -975,10 +975,7 @@ impl PhoneNumberUtil {
} }
pub fn normalize_digits_only<'a>(&self, phone_number: &'a str) -> String { pub fn normalize_digits_only<'a>(&self, phone_number: &'a str) -> String {
phone_number.chars() dec_from_char::normalize_decimals_filtering(phone_number)
.filter_map(| c | c.to_decimal_utf8())
.filter_map(| i | char::from_u32(b'0' as u32 + i) )
.collect()
} }
pub fn format_out_of_country_calling_number<'a>( pub fn format_out_of_country_calling_number<'a>(