Skip to content

Commit

Permalink
๐Ÿงน
Browse files Browse the repository at this point in the history
  • Loading branch information
aslilac committed May 12, 2024
1 parent 6da27e3 commit bbc5b52
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/reporters/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ impl HtmlReporter {
);
print!("<body>\n\n");

// The bar
let total_lines = summaries
.iter()
.map(|(_, summary)| summary.lines)
Expand Down Expand Up @@ -65,18 +64,19 @@ impl HtmlReporter {
<colgroup><col /><col width=\"15%\" /><col width=\"15%\" /></colgroup>\n\
<th>Language</th><th>Lines</th><th>Blank</th>\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<tr><td><span style=\"color: {}\">โ—</span>&nbsp;{}</td><td>{}</td><td>{}</td></tr>",
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<tr><td><span style=\"color: {}\">โ—</span>&nbsp;{}</td><td>{}</td><td>{}</td></tr>",
color, stat.language, stat.lines, stat.blank_lines
);
}
}
print!("</table>\n\n");

Expand Down

0 comments on commit bbc5b52

Please sign in to comment.