mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
clippy: re-enable single_char_pattern lint
This commit is contained in:
parent
7b77e57601
commit
081e29c106
2 changed files with 1 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue