diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-20 21:28:06 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-20 21:28:06 +0200 |
| commit | 5e9cc4e31920b72fe4f1c4a44d1a6e250e36f254 (patch) | |
| tree | 1ceb05371e01653f4a7f3d976adea53522c3ab94 | |
| parent | d108bd53866aef2a3b76164352c095e898fe92db (diff) | |
| download | rust-5e9cc4e31920b72fe4f1c4a44d1a6e250e36f254.tar.gz rust-5e9cc4e31920b72fe4f1c4a44d1a6e250e36f254.zip | |
fmt
| -rw-r--r-- | src/librustdoc/passes/calculate_doc_coverage.rs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/librustdoc/passes/calculate_doc_coverage.rs b/src/librustdoc/passes/calculate_doc_coverage.rs index 1bdd337dabe..fd3179c13fe 100644 --- a/src/librustdoc/passes/calculate_doc_coverage.rs +++ b/src/librustdoc/passes/calculate_doc_coverage.rs @@ -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, ); } @@ -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, |
