File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments