The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
style: apply rustfmt formatting to config load and proxy config
Steven Enamakele3f4c8cd3807
diff --git a/crates/openhuman-core/src/config/schema/load/impl_load.rs b/crates/openhuman-core/src/config/schema/load/impl_load.rsindex efe2863271..711e273e3d 100644--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs@@ -224,8 +224,10 @@ pub(super) async fn migration_source(config_path: &Path, contents: &str) -> Stri}async fn parse_toml_off_worker(contents: String) -> Result<Box<Config>, String> {- match tokio::task::spawn_blocking(move || super::parse::config_from_toml_str(&contents).map(Box::new))- .await+ match tokio::task::spawn_blocking(move || {+ super::parse::config_from_toml_str(&contents).map(Box::new)+ })+ .await{Ok(Ok(config)) => Ok(config),Ok(Err(parse_err)) => Err(parse_err.to_string()),diff --git a/crates/openhuman-core/src/tools/impl/system/proxy_config.rs b/crates/openhuman-core/src/tools/impl/system/proxy_config.rsindex 15acd4be63..ded36619ce 100644--- a/crates/openhuman-core/src/tools/impl/system/proxy_config.rs+++ b/crates/openhuman-core/src/tools/impl/system/proxy_config.rs@@ -27,12 +27,13 @@ impl ProxyConfigTool {)})?;- let mut parsed: Config = crate::config::schema::config_from_toml_str(&contents).map_err(|error| {- anyhow::anyhow!(- "Failed to parse config file {}: {error}",- self.config.config_path.display()- )- })?;+ let mut parsed: Config =+ crate::config::schema::config_from_toml_str(&contents).map_err(|error| {+ anyhow::anyhow!(+ "Failed to parse config file {}: {error}",+ self.config.config_path.display()+ )+ })?;parsed.config_path = self.config.config_path.clone();parsed.workspace_dir = self.config.workspace_dir.clone();Ok(parsed)