Skip to content

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

style: reformat runtime context code

Steven Enamakel4263a7b34724
diff --git a/crates/openhuman-core/src/core/runtime/context.rs b/crates/openhuman-core/src/core/runtime/context.rs
index beef7d1a38..63eb9e7425 100644
--- a/crates/openhuman-core/src/core/runtime/context.rs
+++ b/crates/openhuman-core/src/core/runtime/context.rs
@@ -538,9 +538,7 @@ impl CoreContext {
/// it would turn a labelled turn into an unlabelled one the approval gate
/// refuses.
pub async fn scope<F: Future>(ctx: Arc<CoreContext>, fut: F) -> F::Output {
- CURRENT_CONTEXT
- .scope(Self::keeping_turn_origin(ctx), fut)
- .await
+ CURRENT_CONTEXT.scope(Self::keeping_turn_origin(ctx), fut).await
}
/// [`scope`](Self::scope) for a synchronous closure.
diff --git a/crates/openhuman-core/src/core/runtime/context_test_support.rs b/crates/openhuman-core/src/core/runtime/context_test_support.rs
index 741aca0b3a..e9d610fce7 100644
--- a/crates/openhuman-core/src/core/runtime/context_test_support.rs
+++ b/crates/openhuman-core/src/core/runtime/context_test_support.rs
@@ -35,12 +35,9 @@ impl CoreContext {
/// Test-only: given `[components]` switches.
pub(crate) fn for_test_with_components(c: crate::core::runtime::ComponentSet) -> Arc<Self> {
- let mut ctx = Arc::try_unwrap(Self::for_test(
- crate::core::runtime::DomainSet::full(),
- None,
- ))
- .ok()
- .unwrap();
+ let mut ctx = Arc::try_unwrap(Self::for_test(crate::core::runtime::DomainSet::full(), None))
+ .ok()
+ .unwrap();
ctx.components = c;
Arc::new(ctx)
}