From 5e9cc4e31920b72fe4f1c4a44d1a6e250e36f254 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 20 Aug 2020 21:28:06 +0200 Subject: [PATCH] fmt --- src/librustdoc/passes/calculate_doc_coverage.rs | 13 ++----------- 1 file 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 @@ 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::ConstantItem(_) ); find_testable_code( - &i.attrs - .doc_strings - .iter() - .map(|d| d.as_str()) - .collect::>() - .join("\n"), + &i.attrs.doc_strings.iter().map(|d| d.as_str()).collect::>().join("\n"), &mut tests, ErrorCodes::No, false, -- 2.44.0