Skip to content

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

fix(clippy): needless return in background_delivery, from_ref in sessions test

Steven Enamakel934edbbbf583
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store_documents_tests.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store_documents_tests.rs
index d0b6c41e1c..39a67e8f00 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store_documents_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/store_documents_tests.rs
@@ -120,7 +120,7 @@ fn the_store_dispatches_to_documents_when_a_backend_is_pinned() {
fn a_stale_snapshot_does_not_revert_a_newer_session() {
let docs = docs_in(&MemoryStorage::new(), "local");
let old = session("a");
- docs.save(&[old.clone()]).unwrap();
+ docs.save(std::slice::from_ref(&old)).unwrap();
// Another core finishes the session.
let mut newer = old.clone();