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.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
fix: expect_err over err().expect() in the #1189 tests (clippy::err_expect is denied)
xerj-orga8fa95e9e64d
diff --git a/engine/crates/xerj-engine/src/index.rs b/engine/crates/xerj-engine/src/index.rsindex 79b15e674..f026216cf 100644--- a/engine/crates/xerj-engine/src/index.rs+++ b/engine/crates/xerj-engine/src/index.rs@@ -36023,8 +36023,7 @@ mod embedding_identity_tests {..Default::default()};let err = embedding_execution_identity(&broken)- .err()- .expect("explicit proxy with an unusable endpoint must error");+ .expect_err("explicit proxy with an unusable endpoint must error");let msg = format!("{err}");assert!(msg.contains("embedding.mode=proxy"),@@ -36064,9 +36063,11 @@ mod embedding_identity_tests {default_endpoint: endpoint.into(),..Default::default()};+ // `Embedder` is not Debug, so plain `expect_err` cannot print+ // the Ok side; map it away first.let err = make_embedder(&cfg)- .err()- .expect("explicit proxy with an unusable endpoint must error");+ .map(|_| ())+ .expect_err("explicit proxy with an unusable endpoint must error");let msg = format!("{err}");assert!(msg.contains("embedding.mode=proxy"),