Skip to content
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
GuillaumeGomez committed Aug 20, 2020
commit 5e9cc4e31920b72fe4f1c4a44d1a6e250e36f254
13 changes: 2 additions & 11 deletions src/librustdoc/passes/calculate_doc_coverage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,7 @@ impl CoverageCalculator {
) {
println!(
"| {:<35} | {:>10} | {:>9.1}% | {:>10} | {:>9.1}% |",
name,
count.with_docs,
percentage,
count.with_examples,
examples_percentage,
name, count.with_docs, percentage, count.with_examples, examples_percentage,
);
}

Expand Down Expand Up @@ -247,12 +243,7 @@ impl fold::DocFolder for CoverageCalculator {
| clean::ConstantItem(_)
);
find_testable_code(
&i.attrs
.doc_strings
.iter()
.map(|d| d.as_str())
.collect::<Vec<_>>()
.join("\n"),
&i.attrs.doc_strings.iter().map(|d| d.as_str()).collect::<Vec<_>>().join("\n"),
&mut tests,
ErrorCodes::No,
false,
Expand Down