Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

fix(autoindex): satisfy clippy --tests on the corpus-builder arc (PR #1046)

xerj-org1a0b8da318b8
diff --git a/engine/crates/xerj-autoindex/src/harvest/recipe.rs b/engine/crates/xerj-autoindex/src/harvest/recipe.rs
index 0af8a9309..21b1af44e 100644
--- a/engine/crates/xerj-autoindex/src/harvest/recipe.rs
+++ b/engine/crates/xerj-autoindex/src/harvest/recipe.rs
@@ -667,7 +667,7 @@ edges = [{ field = "id" }]
let r = load(&write(tmp.path(), MINIMAL)).unwrap();
assert_eq!(r.name, "demo");
assert_eq!(r.envelope.id_from, vec!["id".to_string()]);
- assert_eq!(r.envelope.passthrough, true);
+ assert!(r.envelope.passthrough);
assert_eq!(r.emit.shards, 16);
assert_eq!(r.sources[0].glob, "**/*.json");
}
diff --git a/engine/crates/xerj-autoindex/src/xc.rs b/engine/crates/xerj-autoindex/src/xc.rs
index c6f6c6dea..4e60e75cd 100644
--- a/engine/crates/xerj-autoindex/src/xc.rs
+++ b/engine/crates/xerj-autoindex/src/xc.rs
@@ -2138,7 +2138,7 @@ mod tests {
/// env held across both, not scoped per call. Under ENV_LOCK for the
/// same reason the env tests above are (do NOT re-enter: the lock is not
/// reentrant, so nothing inside may take it again).
- struct CodeHomeGuard(std::sync::MutexGuard<'static, ()>);
+ struct CodeHomeGuard(#[expect(dead_code)] std::sync::MutexGuard<'static, ()>);
impl Drop for CodeHomeGuard {
fn drop(&mut self) {
std::env::remove_var("XERJ_CODE_HOME");