File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1300,6 +1300,30 @@ fn print_binary_stats(
1300
1300
}
1301
1301
}
1302
1302
rows. sort_by_cached_key ( |row| Reverse ( ( row. diff . abs ( ) , row. before , row. name . clone ( ) ) ) ) ;
1303
+
1304
+ // Combine all unchanged rows into one.
1305
+ if use_diff {
1306
+ let mut unchanged_count = 0 ;
1307
+ let mut total_unchanged = 0 ;
1308
+ rows. retain ( |row| {
1309
+ if row. diff == 0 {
1310
+ unchanged_count += 1 ;
1311
+ total_unchanged += row. before ;
1312
+ false
1313
+ } else {
1314
+ true
1315
+ }
1316
+ } ) ;
1317
+ if total_unchanged > 0 {
1318
+ rows. push ( Row {
1319
+ name : format ! ( "<{unchanged_count} unchanged rows>" ) ,
1320
+ before : total_unchanged,
1321
+ after : total_unchanged,
1322
+ diff : 0 ,
1323
+ } ) ;
1324
+ }
1325
+ }
1326
+
1303
1327
rows. push ( Row {
1304
1328
name : "Total" . to_string ( ) ,
1305
1329
before : total_before,
You can’t perform that action at this time.
0 commit comments