Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

style(store,web): format the expiry tests for rustfmt

Vinícius DS Andrade1dd51a941dc0
diff --git a/crates/ai-memory-store/src/lib.rs b/crates/ai-memory-store/src/lib.rs
index bf6c62b1..941e140e 100644
--- a/crates/ai-memory-store/src/lib.rs
+++ b/crates/ai-memory-store/src/lib.rs
@@ -4890,7 +4890,13 @@ mod tests {
// The reader-facing listing drops it, and only it: a TTL still
// ahead and no TTL at all both stay.
assert_eq!(
- paths(store.reader.list_unexpired_pages("default", "scratch").await.unwrap()),
+ paths(
+ store
+ .reader
+ .list_unexpired_pages("default", "scratch")
+ .await
+ .unwrap()
+ ),
["future.md", "live.md"]
);
}
diff --git a/crates/ai-memory-web/tests/suite/routes.rs b/crates/ai-memory-web/tests/suite/routes.rs
index 86df5e6c..dfff8281 100644
--- a/crates/ai-memory-web/tests/suite/routes.rs
+++ b/crates/ai-memory-web/tests/suite/routes.rs
@@ -5066,7 +5066,11 @@ async fn seed_expiry_mix(
.await
.unwrap();
for (path, body, expires_at) in [
- ("notes/expired.md", "# Expired Note\n\nPast its date.", "2000-01-01"),
+ (
+ "notes/expired.md",
+ "# Expired Note\n\nPast its date.",
+ "2000-01-01",
+ ),
("notes/future.md", "# Future Note\n\nNot yet.", "2999-01-01"),
] {
let mut request = wiki_req(ws, proj, path, body);