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: cargo fmt the new dict-bitpack test call, and drop a literal that looked like a format string

xerj-org86c918389d48
diff --git a/engine/crates/xerj-common/src/config.rs b/engine/crates/xerj-common/src/config.rs
index da57ced40..81706c135 100644
--- a/engine/crates/xerj-common/src/config.rs
+++ b/engine/crates/xerj-common/src/config.rs
@@ -2298,7 +2298,7 @@ mod tests {
// validates, so #318's `block_size_docs = 999999` node would not
// have started.
let err = Config::from_toml_str(&format!("[compression]\nblock_size_docs = {bad}\n"))
- .expect_err("{bad} is outside the documented 16..=4096 range");
+ .unwrap_err();
assert!(
err.to_string().contains("compression.block_size_docs"),
"the error must name the setting, got: {err}"
diff --git a/engine/crates/xerj-storage/src/stored_codec/row_hydration.rs b/engine/crates/xerj-storage/src/stored_codec/row_hydration.rs
index 2a7df97d2..272264142 100644
--- a/engine/crates/xerj-storage/src/stored_codec/row_hydration.rs
+++ b/engine/crates/xerj-storage/src/stored_codec/row_hydration.rs
@@ -1226,7 +1226,11 @@ mod tests {
(
"__id",
ColCodec::DictBitpack,
- encode_dict_bitpack(&[json!("a"), json!("b")], &[0, 1, 0, 1], STORED_ZSTD_LEVEL),
+ encode_dict_bitpack(
+ &[json!("a"), json!("b")],
+ &[0, 1, 0, 1],
+ STORED_ZSTD_LEVEL,
+ ),
),
("__seq_no", ColCodec::CrossDep, dependent),
],