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(site_memory_host): reformat match arm and test assertion
Steven Enamakel53e550d2adc8
diff --git a/crates/openhuman-core/src/modules/site_memory_host.rs b/crates/openhuman-core/src/modules/site_memory_host.rsindex ef802c6fb2..ffaa607e44 100644--- a/crates/openhuman-core/src/modules/site_memory_host.rs+++ b/crates/openhuman-core/src/modules/site_memory_host.rs@@ -62,9 +62,7 @@ impl SiteStore {let read = match tokio::fs::metadata(&path).await {Ok(m) if m.len() <= MAX_FILE_BYTES => tokio::fs::read(&path).await,Ok(_) => Err(std::io::Error::other("larger than a site file can be")),- Err(e) if e.kind() == std::io::ErrorKind::NotFound => {- return Ok(SiteMemory::default())- }+ Err(e) if e.kind() == std::io::ErrorKind::NotFound => return Ok(SiteMemory::default()),Err(e) => Err(e),};match read.and_then(|b| serde_json::from_slice(&b).map_err(std::io::Error::other)) {diff --git a/crates/openhuman-core/src/modules/site_memory_host_tests.rs b/crates/openhuman-core/src/modules/site_memory_host_tests.rsindex 98d7fe0a04..e89789d308 100644--- a/crates/openhuman-core/src/modules/site_memory_host_tests.rs+++ b/crates/openhuman-core/src/modules/site_memory_host_tests.rs@@ -22,7 +22,10 @@ async fn saved_memory_loads_back_and_empty_save_removes_the_site() {let back = store.load("example.com").await.unwrap();assert_eq!(back, memory());let _: &SavedHint = &back.hints[0];- assert!(store.save("example.com", &SiteMemory::default()).await.unwrap());+ assert!(store+ .save("example.com", &SiteMemory::default())+ .await+ .unwrap());assert!(store.load("example.com").await.unwrap().is_empty());}