]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/passes/calculate_doc_coverage.rs
fmt
[rust.git] / src / librustdoc / passes / calculate_doc_coverage.rs
index 1bdd337dabecb4feb9ddacac2d2fb6e893bb8580..fd3179c13fe22e5ef5c9051d702ced48b6db38ad 100644 (file)
@@ -143,11 +143,7 @@ fn print_table_record(
         ) {
             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 @@ fn fold_item(&mut self, i: clean::Item) -> Option<clean::Item> {
                     | 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,