Skip to content

Commit 84a5d5b

Browse files
committed
Fixing test errors
1 parent 93d233b commit 84a5d5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/cli/src/commands/compare.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ fn display_summary(
641641

642642
let status = if result.diff_result.match_result.changes.is_empty() {
643643
"No changes".green()
644-
} else if result.diff_result.changes.len() < 5 {
644+
} else if result.diff_result.match_result.changes.len() < 5 {
645645
"Minor changes".yellow()
646646
} else {
647647
"Major changes".red()
@@ -650,7 +650,7 @@ fn display_summary(
650650
term.write_line(&format!(" {} - {} ({} changes, {:.1}% similar)",
651651
file_name,
652652
status,
653-
result.diff_result.changes.len(),
653+
result.diff_result.match_result.changes.len(),
654654
result.stats.similarity_score * 100.0
655655
))?;
656656
}

0 commit comments

Comments
 (0)