Skip to content

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

style: format upstream module bundling changes

Steven Enamakela7ceed5c1f4f
diff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rs
index b3997d13bf..e7ee6d0ef3 100644
--- a/crates/openhuman-core/src/modules/ops.rs
+++ b/crates/openhuman-core/src/modules/ops.rs
@@ -81,10 +81,14 @@ pub(crate) fn resolve_bundled_dir(
) -> Option<PathBuf> {
// Each candidate must be a directory to win: a stale registered path or a
// mistyped env var must not hide a valid directory further down the list.
- let found = [registered, from_env, exe_dir.map(|dir| dir.join(BUNDLED_MODULES_DIR))]
- .into_iter()
- .flatten()
- .find(|dir| dir.is_dir());
+ let found = [
+ registered,
+ from_env,
+ exe_dir.map(|dir| dir.join(BUNDLED_MODULES_DIR)),
+ ]
+ .into_iter()
+ .flatten()
+ .find(|dir| dir.is_dir());
if let Some(dir) = &found {
log::debug!("[modules] bundled release directory: {}", dir.display());
}
diff --git a/crates/openhuman-core/src/modules/ops_tests.rs b/crates/openhuman-core/src/modules/ops_tests.rs
index 50138cb89c..ea34d83d72 100644
--- a/crates/openhuman-core/src/modules/ops_tests.rs
+++ b/crates/openhuman-core/src/modules/ops_tests.rs
@@ -381,7 +381,10 @@ fn bundled_dir_ignores_paths_that_do_not_exist() {
ops::resolve_bundled_dir(None, Some(root.path().join("missing")), None),
None
);
- assert_eq!(ops::resolve_bundled_dir(None, None, Some(root.path().into())), None);
+ assert_eq!(
+ ops::resolve_bundled_dir(None, None, Some(root.path().into())),
+ None
+ );
}
#[test]