fix: clippy collapsible-if on hybrid_search type filter

CI failed on macOS + Ubuntu with clippy::collapsible_if on the
else-if branch of the exclude_types filter. Collapse the inner
`if` into the `let Some && ...` guard. Semantics preserved — the
includes branch is left as-is to keep include/exclude mutually
exclusive behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sam Valladares 2026-04-14 14:50:03 -05:00
parent 27b562d64d
commit 95bde93b49

View file

@ -1458,10 +1458,10 @@ impl Storage {
if !includes.iter().any(|t| t == &node.node_type) {
continue;
}
} else if let Some(excludes) = exclude_types {
if excludes.iter().any(|t| t == &node.node_type) {
continue;
}
} else if let Some(excludes) = exclude_types
&& excludes.iter().any(|t| t == &node.node_type)
{
continue;
}
let keyword_score = keyword_results
.iter()