mirror of
https://github.com/sharkdp/bat
synced 2026-07-21 16:43:19 +00: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