Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style(memory): rustfmt lifecycle adapters

Steven Enamakel69e80ec1237a
diff --git a/crates/openhuman-core/src/memory/lifecycle/jobs_tests.rs b/crates/openhuman-core/src/memory/lifecycle/jobs_tests.rs
index 810d5127b2..65af145fe2 100644
--- a/crates/openhuman-core/src/memory/lifecycle/jobs_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/jobs_tests.rs
@@ -112,7 +112,10 @@ async fn an_account_wide_refusal_through_the_host_keeps_the_job_without_an_attem
crate::memory::test_fixtures::RefusingEngine::out_of_credits().bind(&config);
enqueue(&config, &Namespace::ROOT, vec![build("a")]).await;
for _ in 0..MAX_ATTEMPTS + 1 {
- assert_eq!(run(&config, Selection::All).await.unwrap()[0].outcome, "failed");
+ assert_eq!(
+ run(&config, Selection::All).await.unwrap()[0].outcome,
+ "failed"
+ );
}
let queue = snapshot(&config).await;
assert_eq!(queue.pending.len(), 1);
diff --git a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs b/crates/openhuman-core/src/memory/lifecycle/prefetch.rs
index 87afcacdda..7835a109db 100644
--- a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/prefetch.rs
@@ -40,7 +40,9 @@ fn pack_fits(pack: &TurnPack) -> bool {
serde_json::to_vec(pack)
.ok()
.zip(serde_json::to_vec(&pack.citations).ok())
- .is_some_and(|(pack, citations)| pack.len().saturating_add(citations.len()) <= MAX_PACK_BYTES)
+ .is_some_and(|(pack, citations)| {
+ pack.len().saturating_add(citations.len()) <= MAX_PACK_BYTES
+ })
}
#[derive(Clone, Hash, PartialEq, Eq)]