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
style(modules): rustfmt search-path loader and about_app tests
Steven Enamakelf674c8180690
diff --git a/crates/openhuman-core/src/modules/search_path.rs b/crates/openhuman-core/src/modules/search_path.rsindex 37c4b44663..8544d85b0b 100644--- a/crates/openhuman-core/src/modules/search_path.rs+++ b/crates/openhuman-core/src/modules/search_path.rs@@ -26,7 +26,10 @@ pub fn load_enabled(host: &ModuleHost, skip: &[String]) -> Vec<Result<ModuleInforeturn host.load_search_paths();}let mut outcomes = Vec::new();- for dir in ModuleHost::search_paths().into_iter().filter(|p| p.is_dir()) {+ for dir in ModuleHost::search_paths()+ .into_iter()+ .filter(|p| p.is_dir())+ {let mut files: Vec<_> = match std::fs::read_dir(&dir) {Ok(entries) => entries.filter_map(|e| e.ok().map(|e| e.path())).collect(),Err(_) => Vec::new(),@@ -45,7 +48,10 @@ pub fn load_enabled(host: &ModuleHost, skip: &[String]) -> Vec<Result<ModuleInfolog::debug!("[modules] search-path artifact skipped: component disabled");continue;}- if file.extension().is_some_and(|e| matches!(e.to_str(), Some("so" | "dylib" | "dll"))) {+ if file+ .extension()+ .is_some_and(|e| matches!(e.to_str(), Some("so" | "dylib" | "dll")))+ {outcomes.push(host.load_file(&file));}}diff --git a/crates/openhuman-core/src/platform/about_app/ops_tests.rs b/crates/openhuman-core/src/platform/about_app/ops_tests.rsindex 008b64fc4e..fb7e5ad911 100644--- a/crates/openhuman-core/src/platform/about_app/ops_tests.rs+++ b/crates/openhuman-core/src/platform/about_app/ops_tests.rs@@ -16,14 +16,20 @@ fn capability_of_a_disabled_component_shows_disabled() {assert_eq!(marked.id, cap.id);// Another component being off leaves it alone.assert_eq!(apply_components(cap, &off("wallet")).status, cap.status);- assert_eq!(apply_components(cap, &ComponentSet::all()).status, cap.status);+ assert_eq!(+ apply_components(cap, &ComponentSet::all()).status,+ cap.status+ );}#[test]fn domain_mapping_names_real_components() {for cap in super::super::all_capabilities() {if let Some(name) = component_for_domain(cap.domain) {- assert!(crate::core::runtime::COMPONENT_NAMES.contains(&name), "{name}");+ assert!(+ crate::core::runtime::COMPONENT_NAMES.contains(&name),+ "{name}"+ );}}}