From bbc5b52819e0e8782a32bd0395fafda4f3dd613a Mon Sep 17 00:00:00 2001 From: McKayla Washburn Date: Sat, 11 May 2024 21:08:21 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/reporters/html.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/reporters/html.rs b/src/reporters/html.rs index 861082d..5189af9 100644 --- a/src/reporters/html.rs +++ b/src/reporters/html.rs @@ -21,7 +21,6 @@ impl HtmlReporter { ); print!("\n\n"); - // The bar let total_lines = summaries .iter() .map(|(_, summary)| summary.lines) @@ -65,18 +64,19 @@ impl HtmlReporter { \n\ LanguageLinesBlank\n" ); - - for (_, stat) in summaries.iter() { - let lang = LanguageInfo::from(&stat.language); - let color = lang - .color - .as_ref() - .map(Color::hex) - .unwrap_or("gray".to_string()); - println!( - "\t {}{}{}", - color, stat.language, stat.lines, stat.blank_lines - ); + { + for (_, stat) in summaries.iter() { + let lang = LanguageInfo::from(&stat.language); + let color = lang + .color + .as_ref() + .map(Color::hex) + .unwrap_or("gray".to_string()); + println!( + "\t {}{}{}", + color, stat.language, stat.lines, stat.blank_lines + ); + } } print!("\n\n");