From a379b3c077b8d1e207df4b6f1048c0437a952065 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Sun, 25 Sep 2022 15:02:29 +0900 Subject: [PATCH] fixed elapse time HTML output --- src/main.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 19ed6e66..f8cf65fa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -328,16 +328,13 @@ impl App { &BufferWriter::stdout(ColorChoice::Always), None, &elapsed_output_str, - true + true, ) .ok(); println!(); if configs::CONFIG.read().unwrap().args.html_report.is_some() { - let output_data = vec![ - format!("- {}", elapsed_output_str), - "".to_string(), - ]; - htmlreport::add_md_data( "General Overview".to_string(), output_data); + let output_data = vec![format!("- {}", elapsed_output_str), "".to_string()]; + htmlreport::add_md_data("General Overview".to_string(), output_data); } // Qオプションを付けた場合もしくはパースのエラーがない場合はerrorのstackが0となるのでエラーログファイル自体が生成されない。 if ERROR_LOG_STACK.lock().unwrap().len() > 0 {