Skip to content

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

style: rustfmt two files main left unformatted

Ghost Scripter97d965b4dc82
diff --git a/crates/openhuman-core/src/agent/session_store/mod.rs b/crates/openhuman-core/src/agent/session_store/mod.rs
index 5a2f574f88..beea34f1f9 100644
--- a/crates/openhuman-core/src/agent/session_store/mod.rs
+++ b/crates/openhuman-core/src/agent/session_store/mod.rs
@@ -67,9 +67,7 @@ pub fn clear() -> bool {
/// by the caller. This keeps a runtime from removing a replacement installed
/// by another owner after the runtime itself has been dropped.
pub fn clear_if(expected: &Arc<dyn SessionStoreProvider>) -> bool {
- let mut installed = PROVIDER
- .write()
- .unwrap_or_else(PoisonError::into_inner);
+ let mut installed = PROVIDER.write().unwrap_or_else(PoisonError::into_inner);
if installed
.as_ref()
.is_some_and(|current| Arc::ptr_eq(current, expected))
diff --git a/crates/openhuman-embed/src/runtime/mod.rs b/crates/openhuman-embed/src/runtime/mod.rs
index a9641696b2..44e9d192cf 100644
--- a/crates/openhuman-embed/src/runtime/mod.rs
+++ b/crates/openhuman-embed/src/runtime/mod.rs
@@ -372,8 +372,9 @@ impl Runtime {
core: Core,
workspace: ResolvedWorkspace,
session_store: Option<Arc<dyn openhuman_core::agent::session_store::SessionStoreProvider>>,
- previous_session_store:
- Option<Arc<dyn openhuman_core::agent::session_store::SessionStoreProvider>>,
+ previous_session_store: Option<
+ Arc<dyn openhuman_core::agent::session_store::SessionStoreProvider>,
+ >,
base_config: Config,
inherited: bool,
domains: DomainSet,