chore: clippy

This commit is contained in:
dracarys18 2025-11-18 11:18:06 +05:30
parent 84080ff59f
commit bce46a2295
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ impl Database {
}
fn has_exact_match(path: &str, keywords: &[String]) -> bool {
keywords.last().map_or(false, |keyword| {
keywords.last().is_some_and(|keyword| {
let path_lower = util::to_lowercase(path);
let last_component = path_lower.rsplit(std::path::is_separator).next().unwrap_or("");
last_component == keyword