Skip to content

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

style: apply rustfmt formatting to cron and flow test code

Steven Enamakeld02d87141e14
diff --git a/crates/openhuman-core/src/cron/schemas.rs b/crates/openhuman-core/src/cron/schemas.rs
index 1620961750..1943f7b6e8 100644
--- a/crates/openhuman-core/src/cron/schemas.rs
+++ b/crates/openhuman-core/src/cron/schemas.rs
@@ -373,7 +373,9 @@ fn handle_add(params: Map<String, Value>) -> ControllerFuture {
.is_none()
.then(tinyflows_schedule::types::DeliveryConfig::default)
.or_else(|| {
- Some(tinyflows_schedule::validation::default_delivery(origin.as_ref()))
+ Some(tinyflows_schedule::validation::default_delivery(
+ origin.as_ref(),
+ ))
})
});
let delivery_cfg = delivery.clone().unwrap_or_default();
diff --git a/crates/openhuman-core/src/flows/ops_connection_ref_gate_tests.rs b/crates/openhuman-core/src/flows/ops_connection_ref_gate_tests.rs
index 23a95660fa..a0053d3797 100644
--- a/crates/openhuman-core/src/flows/ops_connection_ref_gate_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_connection_ref_gate_tests.rs
@@ -357,7 +357,10 @@ async fn mock_opaque_tool_call_upstream_ref_matches_native_and_composio_upstream
],
"edges": []
}));
- let up = |expr: &str| tinyflows::preflight::mock_opaque_tool_call_upstream_ref(expr, &g, "sink").map(str::to_string);
+ let up = |expr: &str| {
+ tinyflows::preflight::mock_opaque_tool_call_upstream_ref(expr, &g, "sink")
+ .map(str::to_string)
+ };
assert_eq!(
up("=nodes.native_up.item.json.url").as_deref(),
Some("native_up")
diff --git a/crates/openhuman-embed/src/cron.rs b/crates/openhuman-embed/src/cron.rs
index cd834dab86..f754fa460c 100644
--- a/crates/openhuman-embed/src/cron.rs
+++ b/crates/openhuman-embed/src/cron.rs
@@ -59,8 +59,8 @@ use std::future::Future;
use std::time::SystemTime;
use openhuman_core::config::Config;
-use openhuman_core::cron::JobPolicy;
use openhuman_core::cron::system_jobs::SYSTEM_COMMAND_PREFIX;
+use openhuman_core::cron::JobPolicy;
use {
openhuman_core::cron::CronJob, openhuman_core::cron::CronJobPatch,
openhuman_core::cron::JobType, openhuman_core::cron::Schedule,