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 |