From 9aab72ef3c9752b9d3a1a43ca678039428ca884e Mon Sep 17 00:00:00 2001 From: Bastian Schubert Date: Wed, 2 Nov 2022 12:48:28 +0100 Subject: [PATCH] fix rebase --- src/main.rs | 1 + src/output.rs | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 16ecfd109..4930d34df 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,6 +63,7 @@ impl OutputType { OutputType::Covdir => path.join("covdir"), OutputType::Html => path.join("html"), OutputType::Cobertura => path.join("cobertura.xml"), + OutputType::Markdown => path.join("markdown.md"), } } else { path.to_path_buf() diff --git a/src/output.rs b/src/output.rs index a02235cf2..a20a0bfd9 100644 --- a/src/output.rs +++ b/src/output.rs @@ -594,7 +594,7 @@ pub fn output_html( html::gen_coverage_json(&global.stats, &config, &output); } -pub fn output_markdown(results: &[(PathBuf, PathBuf, CovResult)], output_file: Option<&Path>) { +pub fn output_markdown(results: &[ResultTuple], output_file: Option<&Path>) { #[derive(Tabled)] struct LineSummary { file: String, @@ -955,8 +955,7 @@ mod tests { ), ]; - let results = Box::new(results.into_iter()); - output_markdown(results, Some(&file_path)); + output_markdown(&results, Some(&file_path)); let results = &read_file(&file_path); let expected = "| file | coverage | covered | missed_lines |