Skip to content

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

fix(clippy): clear lints surfaced by newer toolchain on merged code

Steven Enamakelfdfa2a0512bf
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
index af60bb8c4f..cf08cbc236 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs
@@ -200,7 +200,7 @@ fn drain_target(event: &DomainEvent) -> Option<(&String, Option<&String>, Durati
task_id,
..
} => Some((parent_session, Some(task_id), DEBOUNCE)),
- _ => return None,
+ _ => None,
}
}
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs
index e771694dd2..5b46763d78 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs
@@ -95,7 +95,7 @@ async fn an_off_task_completion_drains_only_its_owners_thread() {
assert_eq!(drained_thread, thread);
assert_eq!(
pending,
- [task_a.clone()],
+ std::slice::from_ref(&task_a),
"alice's drain reaches only her result"
);
diff --git a/crates/openhuman-core/src/channels/providers/relay/store.rs b/crates/openhuman-core/src/channels/providers/relay/store.rs
index 82179c54d0..9f799ba040 100644
--- a/crates/openhuman-core/src/channels/providers/relay/store.rs
+++ b/crates/openhuman-core/src/channels/providers/relay/store.rs
@@ -39,8 +39,8 @@ pub fn reply_message_id(message_id: &str) -> String {
/// One async lock per `(workspace, thread)`, so the duplicate check and the
/// append in [`record_inbound`] are atomic against a concurrent gateway retry.
fn thread_lock(workspace_dir: &Path, thread_id: &str) -> Arc<tokio::sync::Mutex<()>> {
- static LOCKS: OnceLock<Mutex<HashMap<(PathBuf, String), Arc<tokio::sync::Mutex<()>>>>> =
- OnceLock::new();
+ type ThreadLocks = Mutex<HashMap<(PathBuf, String), Arc<tokio::sync::Mutex<()>>>>;
+ static LOCKS: OnceLock<ThreadLocks> = OnceLock::new();
let mut map = LOCKS
.get_or_init(|| Mutex::new(HashMap::new()))
.lock()
diff --git a/tests/storage_flows_e2e.rs b/tests/storage_flows_e2e.rs
index c6f626c58f..f0985e8642 100644
--- a/tests/storage_flows_e2e.rs
+++ b/tests/storage_flows_e2e.rs
@@ -87,7 +87,7 @@ async fn a_configured_backend_holds_cron_flows_and_flow_state() {
retries: Some(0),
single_flight: true,
};
- policy::set_policy(&policy_config, "job-1", wanted.clone()).unwrap();
+ policy::set_policy(&policy_config, "job-1", wanted).unwrap();
assert_eq!(policy::get_policy(&policy_config, "job-1").unwrap(), wanted);
policy::clear_policy(&policy_config, "job-1").unwrap();
assert_eq!(