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:
@@ -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