1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 19:32:25 +01:00

Fix clippy::unnecessary_map_or warnings

This commit is contained in:
einfachIrgendwer0815
2025-01-30 18:14:29 +01:00
parent 3d442cdf98
commit 3d0f0c0565
2 changed files with 4 additions and 4 deletions

View File

@@ -153,7 +153,7 @@ impl<'a> SyntaxMapping<'a> {
if glob.is_match_candidate(&candidate)
|| candidate_filename
.as_ref()
.map_or(false, |filename| glob.is_match_candidate(filename))
.is_some_and(|filename| glob.is_match_candidate(filename))
{
return Some(*syntax);
}