From 4af073a3f866928c6720ac549dfb73c30d790aa0 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 6 Jun 2026 09:23:53 +0000 Subject: [PATCH] fix: satisfy clippy for external adapter code --- crates/coven-cli/src/api.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/coven-cli/src/api.rs b/crates/coven-cli/src/api.rs index b9fe5e3..97869af 100644 --- a/crates/coven-cli/src/api.rs +++ b/crates/coven-cli/src/api.rs @@ -473,11 +473,12 @@ fn session_launch_from_payload(payload: Value) -> Result { // instead of letting the runtime's arg builder surface it later as a // 500. Bonus: rejecting here means we never insert a session row for // a launch that can't possibly succeed. - let supported: Vec = crate::harness::configured_harness_specs()? - .into_iter() - .map(|spec| spec.id) + let supported_specs = crate::harness::configured_harness_specs()?; + let supported: Vec<&str> = supported_specs + .iter() + .map(|spec| spec.id.as_str()) .collect(); - if !supported.contains(&harness) { + if !supported.contains(&harness.as_str()) { anyhow::bail!( "harness `{harness}` is not a supported harness; expected one of {supported:?}" );