(stats: &[StatRecord])
| 284 | } |
| 285 | |
| 286 | fn print_stats_text(stats: &[StatRecord]) { |
| 287 | if stats.is_empty() { |
| 288 | return; |
| 289 | } |
| 290 | println!("\nStatistics:"); |
| 291 | for stat in stats { |
| 292 | let unit = stat.unit.map(|u| format!(" {u}")).unwrap_or_default(); |
| 293 | println!(" --{}: {}{}", stat.name, stat.value, unit); |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | /// Find the first `.cks` file in cwd, or fall back to `rules.cks`. |
| 298 | fn find_cks_hint() -> String { |