mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-27 20:19:22 +00:00
Fix clippy::unnecessary_map_or warnings
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user