Skip to content

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

style: reorder imports and collapse chained calls

Steven Enamakelbe4f2ace8139
diff --git a/crates/openhuman-core/src/storage/import/tinyflows_cron_tests.rs b/crates/openhuman-core/src/storage/import/tinyflows_cron_tests.rs
index 490a7a558f..2dccce1330 100644
--- a/crates/openhuman-core/src/storage/import/tinyflows_cron_tests.rs
+++ b/crates/openhuman-core/src/storage/import/tinyflows_cron_tests.rs
@@ -20,8 +20,7 @@ fn copy_tree(from: &Path, to: &Path) {
#[test]
fn run_with_imports_legacy_cron_jobs_whatever_the_flows_gate() {
let dir = tempfile::TempDir::new().unwrap();
- let fixtures = Path::new(env!("CARGO_MANIFEST_DIR"))
- .join("src/storage/import/fixtures/tinyflows/workspace");
+ let fixtures = Path::new(env!("CARGO_MANIFEST_DIR")).join("src/storage/import/fixtures/tinyflows/workspace");
copy_tree(&fixtures, dir.path());
let config = Config {
workspace_dir: dir.path().to_path_buf(),
@@ -40,10 +39,7 @@ fn run_with_imports_legacy_cron_jobs_whatever_the_flows_gate() {
}
let docs = Arc::clone(backend.for_scope(&Scope::local()).unwrap().documents());
let jobs = crate::storage::block_on_anyhow(async move {
- CronDocuments::new(docs)
- .list_jobs()
- .await
- .map_err(Into::into)
+ CronDocuments::new(docs).list_jobs().await.map_err(Into::into)
})
.unwrap();
assert!(!jobs.is_empty());
diff --git a/crates/openhuman-core/src/tools/impl/system/shell.rs b/crates/openhuman-core/src/tools/impl/system/shell.rs
index 2d14fc5cd5..c67794d377 100644
--- a/crates/openhuman-core/src/tools/impl/system/shell.rs
+++ b/crates/openhuman-core/src/tools/impl/system/shell.rs
@@ -1,7 +1,7 @@
use super::shell_description::{command_param_description, shell_description};
+use super::shell_support::{command_failure, exec_result, python_utf8_env, tool_timeout_message};
#[cfg(feature = "modules")]
use super::shell_support::container_environment;
-use super::shell_support::{command_failure, exec_result, python_utf8_env, tool_timeout_message};
use crate::agent::host_runtime::RuntimeAdapter;
use crate::config::Config;
use crate::security::{AuditLogger, CommandExecutionLog, SecurityPolicy};