chore: clippy
This commit is contained in:
parent
84080ff59f
commit
bce46a2295
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue