@@ -36,7 +36,7 @@ pub async fn run(cli: Cli) -> Result<()> {
3636 include_ast,
3737 max_depth,
3838 show_stats,
39- include,
39+ ref include,
4040 ref exclude,
4141 } = cli. command
4242 {
@@ -454,21 +454,22 @@ async fn process_file_pair(
454454 ) ;
455455 // Convert to DetailedChangeClassification - simplified for now
456456 classified_changes. push ( smart_diff_engine:: DetailedChangeClassification {
457+ change_type : classification,
458+ confidence : change. confidence ,
457459 analysis : smart_diff_engine:: ChangeAnalysis {
458- primary_type : classification,
459- confidence : change. confidence ,
460- characteristics : Vec :: new ( ) ,
461- evidence : Vec :: new ( ) ,
462- impact : smart_diff_engine:: ChangeImpact {
463- impact_level : smart_diff_engine:: ImpactLevel :: Low ,
464- affected_components : Vec :: new ( ) ,
465- implementation_effort : smart_diff_engine:: EffortLevel :: Low ,
466- risk_level : smart_diff_engine:: RiskLevel :: Low ,
467- is_breaking_change : false ,
468- } ,
460+ description : "Change detected" . to_string ( ) ,
461+ alternatives : Vec :: new ( ) ,
462+ complexity_score : 0.5 ,
469463 } ,
470464 secondary_types : Vec :: new ( ) ,
471465 similarity_metrics : None ,
466+ impact : smart_diff_engine:: ChangeImpact {
467+ impact_level : smart_diff_engine:: ImpactLevel :: Low ,
468+ affected_components : Vec :: new ( ) ,
469+ implementation_effort : smart_diff_engine:: EffortLevel :: Low ,
470+ risk_level : smart_diff_engine:: RiskLevel :: Low ,
471+ is_breaking_change : false ,
472+ } ,
472473 } ) ;
473474 }
474475
@@ -571,7 +572,7 @@ fn calculate_function_similarities(
571572 }
572573 */
573574
574- similarities
575+ Ok ( similarities)
575576}
576577
577578/// Write output to file or stdout
@@ -638,7 +639,7 @@ fn display_summary(
638639 . unwrap_or_default ( )
639640 . to_string_lossy ( ) ;
640641
641- let status = if result. diff_result . changes . is_empty ( ) {
642+ let status = if result. diff_result . match_result . changes . is_empty ( ) {
642643 "No changes" . green ( )
643644 } else if result. diff_result . changes . len ( ) < 5 {
644645 "Minor changes" . yellow ( )
0 commit comments