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(test): rustfmt collapse_inner_hits_under_source_includes (#651)

xerj-org6446168add18
diff --git a/engine/crates/xerj-api/tests/collapse_inner_hits_under_source_includes.rs b/engine/crates/xerj-api/tests/collapse_inner_hits_under_source_includes.rs
index fc125d613..62f4071d6 100644
--- a/engine/crates/xerj-api/tests/collapse_inner_hits_under_source_includes.rs
+++ b/engine/crates/xerj-api/tests/collapse_inner_hits_under_source_includes.rs
@@ -61,7 +61,10 @@ async fn post(app: &axum::Router, path: &str, body: Value) -> (StatusCode, Value
let bytes = axum::body::to_bytes(response.into_body(), usize::MAX)
.await
.expect("body");
- (status, serde_json::from_slice(&bytes).unwrap_or(Value::Null))
+ (
+ status,
+ serde_json::from_slice(&bytes).unwrap_or(Value::Null),
+ )
}
/// A collapse `inner_hits` must render even under an explicit