1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-12 16:08:38 +00:00

Fix clippy::manual_ignore_case_cmp warnings

This commit is contained in:
einfachIrgendwer0815 2025-01-30 18:22:01 +01:00
parent 095442191c
commit 625e986552
No known key found for this signature in database
GPG Key ID: 58D55E5F117DA873

View File

@ -60,7 +60,7 @@ fn to_path_and_stem(source_dir: &Path, entry: DirEntry) -> Option<PathAndStem> {
fn handle_file(path_and_stem: &PathAndStem) -> Result<Option<String>> {
if path_and_stem.stem == "NOTICE" {
handle_notice(&path_and_stem.path)
} else if path_and_stem.stem.to_ascii_uppercase() == "LICENSE" {
} else if path_and_stem.stem.eq_ignore_ascii_case("LICENSE") {
handle_license(&path_and_stem.path)
} else {
Ok(None)