mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-13 00:18:47 +00:00
Fix clippy::manual_ignore_case_cmp
warnings
This commit is contained in:
parent
095442191c
commit
625e986552
@ -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>> {
|
fn handle_file(path_and_stem: &PathAndStem) -> Result<Option<String>> {
|
||||||
if path_and_stem.stem == "NOTICE" {
|
if path_and_stem.stem == "NOTICE" {
|
||||||
handle_notice(&path_and_stem.path)
|
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)
|
handle_license(&path_and_stem.path)
|
||||||
} else {
|
} else {
|
||||||
Ok(None)
|
Ok(None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user