Skip to content

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

chore: drop unrelated rustfmt churn

Steven Enamakel20d492dce2e9
diff --git a/crates/openhuman-core/src/agent/hooks_scope.rs b/crates/openhuman-core/src/agent/hooks_scope.rs
index 153f398516..e3c2ac076f 100644
--- a/crates/openhuman-core/src/agent/hooks_scope.rs
+++ b/crates/openhuman-core/src/agent/hooks_scope.rs
@@ -19,8 +19,7 @@ use super::{PostTurnHook, ToolHook};
pub struct HookScope {
tools: Vec<Arc<dyn ToolHook>>,
post_turn: Vec<Arc<dyn PostTurnHook>>,
- stop:
- Vec<Arc<dyn tinyagents_harness::middleware::StopHook<tinyagents_harness::cost::TurnCost>>>,
+ stop: Vec<Arc<dyn tinyagents_harness::middleware::StopHook<tinyagents_harness::cost::TurnCost>>>,
}
impl HookScope {
@@ -55,8 +54,7 @@ impl HookScope {
/// The scope's own stop policies, in registration order.
pub fn stop_hooks(
&self,
- ) -> &[Arc<dyn tinyagents_harness::middleware::StopHook<tinyagents_harness::cost::TurnCost>>]
- {
+ ) -> &[Arc<dyn tinyagents_harness::middleware::StopHook<tinyagents_harness::cost::TurnCost>>] {
&self.stop
}
diff --git a/crates/openhuman-core/src/core/runtime/dispatch_ctx_tests.rs b/crates/openhuman-core/src/core/runtime/dispatch_ctx_tests.rs
index 356fd8ca7b..1c9a399fdf 100644
--- a/crates/openhuman-core/src/core/runtime/dispatch_ctx_tests.rs
+++ b/crates/openhuman-core/src/core/runtime/dispatch_ctx_tests.rs
@@ -63,9 +63,7 @@ async fn explicit_turn_origin_wins_over_the_scoped_one_and_does_not_cross() {
assert_eq!(thread_of(&explicit), "b");
assert_eq!(explicit.turn_origin_or_scoped().map(|_| ()), Some(()));
let moved = explicit.clone();
- let from_task = tokio::spawn(async move { thread_of(&moved) })
- .await
- .unwrap();
+ let from_task = tokio::spawn(async move { thread_of(&moved) }).await.unwrap();
assert_eq!(from_task, "b");
assert_eq!(thread_of(&DispatchCtx::new(Arc::clone(&a))), "a");
})