Skip to content

Commit 5e9cc4e

Browse files
fmt
1 parent d108bd5 commit 5e9cc4e

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/librustdoc/passes/calculate_doc_coverage.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,7 @@ impl CoverageCalculator {
143143
) {
144144
println!(
145145
"| {:<35} | {:>10} | {:>9.1}% | {:>10} | {:>9.1}% |",
146-
name,
147-
count.with_docs,
148-
percentage,
149-
count.with_examples,
150-
examples_percentage,
146+
name, count.with_docs, percentage, count.with_examples, examples_percentage,
151147
);
152148
}
153149

@@ -247,12 +243,7 @@ impl fold::DocFolder for CoverageCalculator {
247243
| clean::ConstantItem(_)
248244
);
249245
find_testable_code(
250-
&i.attrs
251-
.doc_strings
252-
.iter()
253-
.map(|d| d.as_str())
254-
.collect::<Vec<_>>()
255-
.join("\n"),
246+
&i.attrs.doc_strings.iter().map(|d| d.as_str()).collect::<Vec<_>>().join("\n"),
256247
&mut tests,
257248
ErrorCodes::No,
258249
false,

0 commit comments

Comments
 (0)