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
chore: reformat code for consistent style
Steven Enamakel986b37a2a12c
diff --git a/crates/openhuman-core/src/backend/client.rs b/crates/openhuman-core/src/backend/client.rsindex f92eae26fa..7ac04bd0fd 100644--- a/crates/openhuman-core/src/backend/client.rs+++ b/crates/openhuman-core/src/backend/client.rs@@ -436,10 +436,12 @@ impl BackendClient {method.as_str(),url.path(),);- return Err(anyhow::Error::new(BackendApiError::ChannelEditUnsupported {- provider,- message_id,- }));+ return Err(anyhow::Error::new(+ BackendApiError::ChannelEditUnsupported {+ provider,+ message_id,+ },+ ));}Err(BackendTransportError::ChannelMessageNotFound {provider,diff --git a/crates/openhuman-core/src/backend/client_channel_tests.rs b/crates/openhuman-core/src/backend/client_channel_tests.rsindex ccd5c227db..a12ce0d5db 100644--- a/crates/openhuman-core/src/backend/client_channel_tests.rs+++ b/crates/openhuman-core/src/backend/client_channel_tests.rs@@ -333,7 +333,11 @@ impl crate::backend::BackendTransport for FailingTransport {reqwest::Client::new()}- fn base_url(&self, configured: Option<&str>, purpose: crate::backend::BaseUrlPurpose) -> String {+ fn base_url(+ &self,+ configured: Option<&str>,+ purpose: crate::backend::BaseUrlPurpose,+ ) -> String {crate::backend::transport::plain::PlainHttpTransport::new().base_url(configured, purpose)}@@ -352,10 +356,8 @@ impl crate::backend::BackendTransport for FailingTransport {/// Run `f` with a [`FailingTransport`] installed. The `cfg(test)` global slot/// is per thread and `#[tokio::test]` runs on one, so this cannot leak.-async fn with_failing_transport<F, Fut>(- make: fn() -> crate::backend::BackendTransportError,- f: F,-) where+async fn with_failing_transport<F, Fut>(make: fn() -> crate::backend::BackendTransportError, f: F)+whereF: FnOnce() -> Fut,Fut: std::future::Future<Output = ()>,{@@ -385,7 +387,10 @@ async fn route_missing_becomes_channel_edit_unsupported() {else {panic!("expected ChannelEditUnsupported, got {typed:?}");};- assert_eq!((provider.as_str(), message_id.as_str()), ("telegram", "1103"));+ assert_eq!(+ (provider.as_str(), message_id.as_str()),+ ("telegram", "1103")+ );},).await;diff --git a/crates/openhuman-core/src/backend/client_tests.rs b/crates/openhuman-core/src/backend/client_tests.rsindex cc79b313df..29cb42bbe5 100644--- a/crates/openhuman-core/src/backend/client_tests.rs+++ b/crates/openhuman-core/src/backend/client_tests.rs@@ -1,6 +1,6 @@use super::{- backend_api_body_shape, flatten_authed_error,- BackendApiError, BackendClient, BACKEND_API_BODY_SHAPE_MAX_BYTES,+ backend_api_body_shape, flatten_authed_error, BackendApiError, BackendClient,+ BACKEND_API_BODY_SHAPE_MAX_BYTES,};use crate::backend::transport::plain::TEST_PRODUCT_HEADER as PRODUCT_IDENTITY_HEADER;use axum::extract::State;diff --git a/crates/openhuman-tinyhumans/src/transport/channel_404_tests.rs b/crates/openhuman-tinyhumans/src/transport/channel_404_tests.rsindex e255ac16e3..5672631aed 100644--- a/crates/openhuman-tinyhumans/src/transport/channel_404_tests.rs+++ b/crates/openhuman-tinyhumans/src/transport/channel_404_tests.rs@@ -49,9 +49,13 @@ fn json_404() -> ResponseTemplate {#[tokio::test]async fn patch_404_without_a_matching_route_is_route_missing() {let server = server_404("PATCH", "/channels/telegram/messages/1103", html_404()).await;- let err = send(&server.uri(), Method::PATCH, "/channels/telegram/messages/1103")- .await- .unwrap_err();+ let err = send(+ &server.uri(),+ Method::PATCH,+ "/channels/telegram/messages/1103",+ )+ .await+ .unwrap_err();let BackendTransportError::ChannelMessageRouteMissing {provider,message_id,@@ -59,7 +63,10 @@ async fn patch_404_without_a_matching_route_is_route_missing() {else {panic!("expected ChannelMessageRouteMissing, got {err:?}");};- assert_eq!((provider.as_str(), message_id.as_str()), ("telegram", "1103"));+ assert_eq!(+ (provider.as_str(), message_id.as_str()),+ ("telegram", "1103")+ );}#[tokio::test]@@ -67,9 +74,13 @@ async fn patch_404_from_a_real_handler_is_a_missing_message() {// The world where the edit route exists: a handler's JSON 404 means the// message is gone, never that edits are unsupported for the provider.let server = server_404("PATCH", "/channels/discord/messages/abc", json_404()).await;- let err = send(&server.uri(), Method::PATCH, "/channels/discord/messages/abc")- .await- .unwrap_err();+ let err = send(+ &server.uri(),+ Method::PATCH,+ "/channels/discord/messages/abc",+ )+ .await+ .unwrap_err();assert!(matches!(&err,@@ -121,7 +132,10 @@ async fn non_channel_404_stays_a_plain_status() {.await.unwrap_err();assert_eq!(err.status(), Some(404));- assert!(matches!(err, BackendTransportError::Status { .. }), "got {err:?}");+ assert!(+ matches!(err, BackendTransportError::Status { .. }),+ "got {err:?}"+ );}#[test]@@ -134,5 +148,8 @@ fn map_sdk_error_leaves_non_404_channel_errors_alone() {&Method::POST,"/channels/telegram/messages/1",);- assert!(matches!(err, BackendTransportError::Status { status: 401, .. }));+ assert!(matches!(+ err,+ BackendTransportError::Status { status: 401, .. }+ ));}