clippy: re-enable single_char_pattern lint

This commit is contained in:
Daniel Hofstetter 2025-09-30 10:49:46 +02:00
parent 7b77e57601
commit 081e29c106
2 changed files with 1 additions and 2 deletions

View file

@ -699,7 +699,6 @@ unnested_or_patterns = "allow"
implicit_hasher = "allow"
struct_field_names = "allow"
doc_link_with_quotes = "allow"
single_char_pattern = "allow"
format_push_string = "allow"
flat_map_option = "allow"
from_iter_instead_of_collect = "allow"

View file

@ -41,7 +41,7 @@ fn get_locale_from_env(locale_name: &str) -> (Locale, UEncoding) {
// Naively convert the locale name to BCP47 tag format.
//
// See https://en.wikipedia.org/wiki/IETF_language_tag
let bcp47 = simple.replace("_", "-");
let bcp47 = simple.replace('_', "-");
let locale = Locale::try_from_str(&bcp47).unwrap_or(DEFAULT_LOCALE);
// If locale parsing failed, parse the encoding part of the