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.

clippy: elide needless lifetime in the knowledge-surface test helper

xerj-org11cb46ed374f
diff --git a/engine/crates/xerj-console-api/tests/knowledge_surface.rs b/engine/crates/xerj-console-api/tests/knowledge_surface.rs
index ee64702ce..a296347ee 100644
--- a/engine/crates/xerj-console-api/tests/knowledge_surface.rs
+++ b/engine/crates/xerj-console-api/tests/knowledge_surface.rs
@@ -376,7 +376,7 @@ async fn get(app: &TestApp, cookie: Option<&str>) -> (axum::http::StatusCode, Va
(status, v)
}
-fn data<'a>(v: &'a Value) -> &'a Value {
+fn data(v: &Value) -> &Value {
v.get("data").expect("console envelope {data}")
}