Fix clippy::unnecessary_map_or warnings

This commit is contained in:
einfachIrgendwer0815 committed 2025-02-02 15:08:12 +01:00
1 parent 3d442cdf98
commit 3d0f0c0565
2 files changed
+4 -4

No files matched your search

+1 -1
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);
}