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.

style: rustfmt the alias integration test

xerj-org6481e24a6a72
diff --git a/engine/crates/xerj-api/tests/alias_multi_index_reads.rs b/engine/crates/xerj-api/tests/alias_multi_index_reads.rs
index bf4195e1d..22ebff833 100644
--- a/engine/crates/xerj-api/tests/alias_multi_index_reads.rs
+++ b/engine/crates/xerj-api/tests/alias_multi_index_reads.rs
@@ -44,7 +44,10 @@ async fn call(app: &axum::Router, method: &str, path: &str, body: Value) -> (Sta
let bytes = axum::body::to_bytes(response.into_body(), usize::MAX)
.await
.unwrap();
- (status, serde_json::from_slice(&bytes).unwrap_or(Value::Null))
+ (
+ status,
+ serde_json::from_slice(&bytes).unwrap_or(Value::Null),
+ )
}
const PER_INDEX: usize = 40;
@@ -163,7 +166,10 @@ async fn a_scroll_through_an_alias_walks_every_member_and_labels_each_hit() {
hits.push((
h["_index"].as_str().unwrap_or_default().to_string(),
h["_id"].as_str().unwrap_or_default().to_string(),
- h["_source"]["home"].as_str().unwrap_or_default().to_string(),
+ h["_source"]["home"]
+ .as_str()
+ .unwrap_or_default()
+ .to_string(),
));
}
let Some(id) = sid.clone() else { break };