From 95bde93b4986973ba9ecf5f256b7dd97103983a8 Mon Sep 17 00:00:00 2001 From: Sam Valladares Date: Tue, 14 Apr 2026 14:50:03 -0500 Subject: [PATCH] fix: clippy collapsible-if on hybrid_search type filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- crates/vestige-core/src/storage/sqlite.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/vestige-core/src/storage/sqlite.rs b/crates/vestige-core/src/storage/sqlite.rs index cd0523c..244e2ec 100644 --- a/crates/vestige-core/src/storage/sqlite.rs +++ b/crates/vestige-core/src/storage/sqlite.rs @@ -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()