@@ -324,7 +324,7 @@ impl OutputFormatter {
324324 "-" . repeat( changes_header. len( ) ) . dimmed( ) ) ) ;
325325 }
326326
327- for ( i, change) in result. diff_result . changes . iter ( ) . enumerate ( ) {
327+ for ( i, change) in result. diff_result . match_result . changes . iter ( ) . enumerate ( ) {
328328 let change_desc = format ! ( "{}. {:?}: {}" ,
329329 i + 1 ,
330330 change. change_type,
@@ -498,16 +498,16 @@ impl OutputFormatter {
498498 html. push_str ( " <div class=\" info-panel\" >\n " ) ;
499499 html. push_str ( & format ! ( " <div class=\" info-item\" ><strong>Language:</strong> {:?}</div>\n " , result. language) ) ;
500500 html. push_str ( & format ! ( " <div class=\" info-item\" ><strong>Similarity:</strong> {:.1}%</div>\n " , result. stats. similarity_score * 100.0 ) ) ;
501- html. push_str ( & format ! ( " <div class=\" info-item\" ><strong>Changes:</strong> {}</div>\n " , result. diff_result. changes. len( ) ) ) ;
501+ html. push_str ( & format ! ( " <div class=\" info-item\" ><strong>Changes:</strong> {}</div>\n " , result. diff_result. match_result . changes. len( ) ) ) ;
502502 html. push_str ( " </div>\n " ) ;
503503
504504 // Changes
505- if !result. diff_result . changes . is_empty ( ) {
505+ if !result. diff_result . match_result . changes . is_empty ( ) {
506506 html. push_str ( " <div class=\" changes-section\" >\n " ) ;
507507 html. push_str ( " <h3>Changes Detected</h3>\n " ) ;
508508 html. push_str ( " <ul class=\" changes-list\" >\n " ) ;
509509
510- for change in & result. diff_result . changes {
510+ for change in & result. diff_result . match_result . changes {
511511 let class_name = match change. change_type {
512512 smart_diff_parser:: ChangeType :: Add => "addition" ,
513513 smart_diff_parser:: ChangeType :: Delete => "deletion" ,
@@ -595,7 +595,7 @@ impl OutputFormatter {
595595
596596 // Changes
597597 xml. push_str ( " <changes>\n " ) ;
598- for change in & result. diff_result . changes {
598+ for change in & result. diff_result . match_result . changes {
599599 xml. push_str ( " <change>\n " ) ;
600600 xml. push_str ( & format ! ( " <type>{:?}</type>\n " , change. change_type) ) ;
601601 xml. push_str ( & format ! ( " <description>{}</description>\n " , xml_escape( & change. details. description) ) ) ;
@@ -652,7 +652,7 @@ impl OutputFormatter {
652652 csv_escape( & result. target_file. to_string_lossy( ) ) ,
653653 result. language,
654654 result. stats. similarity_score,
655- result. diff_result. changes. len( ) ,
655+ result. diff_result. match_result . changes. len( ) ,
656656 result. refactoring_patterns. len( ) ,
657657 result. stats. total_time. as_millis( )
658658 ) ) ;
@@ -682,13 +682,13 @@ impl OutputFormatter {
682682 md. push_str ( "### Overview\n \n " ) ;
683683 md. push_str ( & format ! ( "- **Language**: {:?}\n " , result. language) ) ;
684684 md. push_str ( & format ! ( "- **Similarity**: {:.1}%\n " , result. stats. similarity_score * 100.0 ) ) ;
685- md. push_str ( & format ! ( "- **Changes**: {}\n " , result. diff_result. changes. len( ) ) ) ;
685+ md. push_str ( & format ! ( "- **Changes**: {}\n " , result. diff_result. match_result . changes. len( ) ) ) ;
686686 md. push_str ( & format ! ( "- **Processing Time**: {}\n \n " , Self :: format_duration( result. stats. total_time) ) ) ;
687687
688688 // Changes
689- if !result. diff_result . changes . is_empty ( ) {
689+ if !result. diff_result . match_result . changes . is_empty ( ) {
690690 md. push_str ( "### Changes Detected\n \n " ) ;
691- for ( i, change) in result. diff_result . changes . iter ( ) . enumerate ( ) {
691+ for ( i, change) in result. diff_result . match_result . changes . iter ( ) . enumerate ( ) {
692692 let emoji = match change. change_type {
693693 smart_diff_parser:: ChangeType :: Add => "➕" ,
694694 smart_diff_parser:: ChangeType :: Delete => "➖" ,
0 commit comments