Skip to content

Commit aa1a55b

Browse files
BunsDevNova
andauthored
fix(ci): satisfy clippy on harness adapter code (#183) thanks @BunsDev
Co-authored-by: Nova <nova@openclaw.local>
1 parent e43ac66 commit aa1a55b

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

crates/coven-cli/src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ fn session_launch_from_payload(payload: Value) -> Result<SessionLaunch> {
477477
.into_iter()
478478
.map(|spec| spec.id)
479479
.collect();
480-
if !supported.iter().any(|id| *id == harness) {
480+
if !supported.contains(&harness) {
481481
anyhow::bail!(
482482
"harness `{harness}` is not a supported harness; expected one of {supported:?}"
483483
);

crates/coven-cli/src/harness.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -479,11 +479,7 @@ fn continuity_args(
479479
// it from output and feed it back on subsequent turns.
480480
ConversationHint::Init { .. } => None,
481481
ConversationHint::Resume { id } => {
482-
let mut args: Vec<String> = spec
483-
.non_interactive_prompt_prefix_args
484-
.iter()
485-
.cloned()
486-
.collect();
482+
let mut args: Vec<String> = spec.non_interactive_prompt_prefix_args.to_vec();
487483
args.push("resume".to_string());
488484
args.push(id.clone());
489485
Some(args)

0 commit comments

Comments
 (0)