@@ -191,7 +191,10 @@ pub async fn scan_bundle(
191191
192192 info ! ( "running scan for uploaded bundle" ) ;
193193 let _keep_project_dir_alive = project_dir;
194- match state. scan . run_scan ( request, bundle. path ( ) , project_path. as_deref ( ) ) {
194+ match state
195+ . scan
196+ . run_scan ( request, bundle. path ( ) , project_path. as_deref ( ) )
197+ {
195198 Ok ( result) => match format {
196199 ScanOutputFormat :: Json => ( StatusCode :: OK , Json ( result) ) . into_response ( ) ,
197200 ScanOutputFormat :: Sarif => match render_sarif ( & result. report ) {
@@ -361,11 +364,10 @@ pub async fn handoff_bundle(
361364
362365 info ! ( "building agent handoff bundle" ) ;
363366 let baseline = request. baseline . clone ( ) ;
364- let outcome =
365- match state
366- . scan
367- . run_scan_report ( request, bundle. path ( ) , project_path. as_deref ( ) )
368- {
367+ let outcome = match state
368+ . scan
369+ . run_scan_report ( request, bundle. path ( ) , project_path. as_deref ( ) )
370+ {
369371 Ok ( outcome) => outcome,
370372 Err ( err) => return ( StatusCode :: BAD_REQUEST , Json ( error_body ( err) ) ) . into_response ( ) ,
371373 } ;
@@ -403,25 +405,19 @@ pub async fn handoff_bundle(
403405 ) {
404406 return to_error ( err) . into_response ( ) ;
405407 }
406- if let Err ( err) = verifyos_cli:: agent_io:: write_fix_prompt_file (
407- & layout. fix_prompt_path ,
408- & pack,
409- & hints,
410- ) {
408+ if let Err ( err) =
409+ verifyos_cli:: agent_io:: write_fix_prompt_file ( & layout. fix_prompt_path , & pack, & hints)
410+ {
411411 return to_error ( err) . into_response ( ) ;
412412 }
413- if let Err ( err) = verifyos_cli:: agent_io:: write_pr_brief_file (
414- & layout. pr_brief_path ,
415- & pack,
416- & hints,
417- ) {
413+ if let Err ( err) =
414+ verifyos_cli:: agent_io:: write_pr_brief_file ( & layout. pr_brief_path , & pack, & hints)
415+ {
418416 return to_error ( err) . into_response ( ) ;
419417 }
420- if let Err ( err) = verifyos_cli:: agent_io:: write_pr_comment_file (
421- & layout. pr_comment_path ,
422- & pack,
423- & hints,
424- ) {
418+ if let Err ( err) =
419+ verifyos_cli:: agent_io:: write_pr_comment_file ( & layout. pr_comment_path , & pack, & hints)
420+ {
425421 return to_error ( err) . into_response ( ) ;
426422 }
427423 if let Err ( err) =
@@ -556,16 +552,16 @@ fn write_repair_plan(
556552 layout : & verifyos_cli:: agent_assets:: AgentAssetLayout ,
557553 hints : & verifyos_cli:: agents:: CommandHints ,
558554) -> Result < ( ) , Box < dyn std:: error:: Error > > {
559- let policy = verifyos_cli:: agent_assets:: RepairPolicy :: new (
560- std:: collections:: HashSet :: new ( ) ,
561- true ,
562- true ,
563- ) ;
555+ let policy =
556+ verifyos_cli:: agent_assets:: RepairPolicy :: new ( std:: collections:: HashSet :: new ( ) , true , true ) ;
564557 let plan = verifyos_cli:: agent_assets:: build_repair_plan ( layout, & policy) ;
565558 let mut out = String :: new ( ) ;
566559 out. push_str ( "# verifyOS Repair Plan\n \n ## Context\n \n " ) ;
567560 if let Some ( app_path) = hints. app_path . as_deref ( ) {
568- out. push_str ( & format ! ( "- Source: `fresh-scan`\n - Scan artifact: `{}`\n " , app_path) ) ;
561+ out. push_str ( & format ! (
562+ "- Source: `fresh-scan`\n - Scan artifact: `{}`\n " ,
563+ app_path
564+ ) ) ;
569565 } else {
570566 out. push_str ( "- Source: `fresh-scan`\n " ) ;
571567 }
0 commit comments