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: reformat long lines to satisfy rustfmt
Steven Enamakelfaeef7f593d0
diff --git a/crates/openhuman-core/src/memory/channels_tests.rs b/crates/openhuman-core/src/memory/channels_tests.rsindex c57ed34d29..fb4401609c 100644--- a/crates/openhuman-core/src/memory/channels_tests.rs+++ b/crates/openhuman-core/src/memory/channels_tests.rs@@ -20,7 +20,10 @@ fn corrupt_channel_thread_file_is_set_aside() {std::fs::write(&file, b"{\"telegram\":[").unwrap();assert!(threads_of(tmp.path(), "telegram").is_empty());- assert!(!file.exists(), "corrupt state must not be silently replaced");+ assert!(+ !file.exists(),+ "corrupt state must not be silently replaced"+ );assert_eq!(std::fs::read(file.with_extension("json.corrupt")).unwrap(),b"{\"telegram\":["diff --git a/crates/openhuman-core/src/memory/lifecycle/jobs.rs b/crates/openhuman-core/src/memory/lifecycle/jobs.rsindex 7b6467178e..6d01b48d58 100644--- a/crates/openhuman-core/src/memory/lifecycle/jobs.rs+++ b/crates/openhuman-core/src/memory/lifecycle/jobs.rs@@ -57,10 +57,9 @@ impl QueueStore for FileQueueStore {};serde_json::from_str(&text).unwrap_or_else(|error| {tracing::warn!(%error, "[memory:jobs] queue unparsable; set aside");- if let Err(error) = std::fs::rename(- &self.file,- self.file.with_extension("json.corrupt"),- ) {+ if let Err(error) =+ std::fs::rename(&self.file, self.file.with_extension("json.corrupt"))+ {tracing::warn!(%error, "[memory:jobs] could not set queue file aside");}QueueState::default()diff --git a/crates/openhuman-core/src/memory/lifecycle/jobs_tests.rs b/crates/openhuman-core/src/memory/lifecycle/jobs_tests.rsindex 287b1b18c6..0a8dd238ef 100644--- a/crates/openhuman-core/src/memory/lifecycle/jobs_tests.rs+++ b/crates/openhuman-core/src/memory/lifecycle/jobs_tests.rs@@ -20,7 +20,10 @@ fn corrupt_job_queue_file_is_set_aside() {let store = FileQueueStore { file: file.clone() };assert_eq!(store.load(), QueueState::default());- assert!(!file.exists(), "corrupt queue must not be silently replaced");+ assert!(+ !file.exists(),+ "corrupt queue must not be silently replaced"+ );assert_eq!(std::fs::read(file.with_extension("json.corrupt")).unwrap(),b"{\"pending\":["diff --git a/crates/openhuman-core/src/memory/sources/state_tests.rs b/crates/openhuman-core/src/memory/sources/state_tests.rsindex 28a5c3e073..bf32e36f11 100644--- a/crates/openhuman-core/src/memory/sources/state_tests.rs+++ b/crates/openhuman-core/src/memory/sources/state_tests.rs@@ -8,7 +8,10 @@ fn corrupt_source_state_file_is_set_aside() {std::fs::write(&file, b"{\"source-1\":").unwrap();assert!(load(tmp.path()).is_empty());- assert!(!file.exists(), "corrupt state must not be silently replaced");+ assert!(+ !file.exists(),+ "corrupt state must not be silently replaced"+ );assert_eq!(std::fs::read(file.with_extension("json.corrupt")).unwrap(),b"{\"source-1\":"