Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

fix(bedrock): apply rustfmt to header_value_preview tests

SwiftWing2142ff8afa90c2
diff --git a/crates/headroom-proxy/src/bedrock/eventstream_to_sse.rs b/crates/headroom-proxy/src/bedrock/eventstream_to_sse.rs
index ec7a95d55..853a2e222 100644
--- a/crates/headroom-proxy/src/bedrock/eventstream_to_sse.rs
+++ b/crates/headroom-proxy/src/bedrock/eventstream_to_sse.rs
@@ -404,8 +404,14 @@ mod tests {
let s = "x".repeat(63) + "éfoo";
assert!(s.len() > 64);
let preview = header_value_preview(&HeaderValue::String(s));
- assert!(preview.ends_with('…'), "expected ellipsis suffix: {preview:?}");
- assert!(!preview.contains('é'), "must not include the split codepoint");
+ assert!(
+ preview.ends_with('…'),
+ "expected ellipsis suffix: {preview:?}"
+ );
+ assert!(
+ !preview.contains('é'),
+ "must not include the split codepoint"
+ );
}
#[test]