Skip to content

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

style: reformat long lines to satisfy rustfmt

Steven Enamakelf5abd425d4ae
diff --git a/crates/openhuman-core/src/channels/module_fixture_tests.rs b/crates/openhuman-core/src/channels/module_fixture_tests.rs
index 07d4e73a1a..a8269a22a0 100644
--- a/crates/openhuman-core/src/channels/module_fixture_tests.rs
+++ b/crates/openhuman-core/src/channels/module_fixture_tests.rs
@@ -28,7 +28,10 @@ pub(crate) async fn client() -> ModuleClient {
let proxy = host::runtime()
.await
.expect("the module host should be running")
- .proxy(tinychannels_module::BUS_NAME, tinychannels_module::OBJECT_PATH)
+ .proxy(
+ tinychannels_module::BUS_NAME,
+ tinychannels_module::OBJECT_PATH,
+ )
.expect("the linked TinyChannels proxy should be valid");
ModuleClient::fixture(proxy)
}
diff --git a/crates/openhuman-core/src/modules/ops_tests.rs b/crates/openhuman-core/src/modules/ops_tests.rs
index 722422bf76..d0db5b2b8e 100644
--- a/crates/openhuman-core/src/modules/ops_tests.rs
+++ b/crates/openhuman-core/src/modules/ops_tests.rs
@@ -631,7 +631,10 @@ async fn a_failing_linked_factory_is_reported_without_its_error_detail() {
let runtime = crate::modules::host::runtime().await.expect("module host");
let error = ops::load_linked(runtime, "linked-failing-test", serde_json::json!({}))
.expect_err("the factory fails");
- assert!(error.contains("linked factory could not be started"), "{error}");
+ assert!(
+ error.contains("linked factory could not be started"),
+ "{error}"
+ );
assert!(!error.contains("secret-token"), "{error}");
assert!(!error.contains("/home"), "{error}");
}
diff --git a/tests/support/linked_modules.rs b/tests/support/linked_modules.rs
index 1a25b10ca4..dc7ca5dcef 100644
--- a/tests/support/linked_modules.rs
+++ b/tests/support/linked_modules.rs
@@ -18,7 +18,9 @@ pub fn install() {
/// should follow the environment like the binary does.
#[cfg(feature = "linked-modules")]
pub fn install_if_requested() {
- if std::env::var("OPENHUMAN_MODULE_SOURCE").is_ok_and(|value| value.eq_ignore_ascii_case("linked")) {
+ if std::env::var("OPENHUMAN_MODULE_SOURCE")
+ .is_ok_and(|value| value.eq_ignore_ascii_case("linked"))
+ {
install();
}
}