From b1393b13dd0a573ad025f3ba23932644356a0b36 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Thu, 25 Aug 2022 08:36:03 +0900 Subject: [PATCH] fixed clippy error(write-with-newline) --- src/afterfact.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afterfact.rs b/src/afterfact.rs index 803153bd..f58c1d4c 100644 --- a/src/afterfact.rs +++ b/src/afterfact.rs @@ -517,7 +517,7 @@ fn _print_detection_summary_by_date( let mut wtr = buf_wtr.buffer(); wtr.set_color(ColorSpec::new().set_fg(None)).ok(); - write!(wtr, "Dates with most total detections:\n").ok(); + writeln!(wtr, "Dates with most total detections:").ok(); for (idx, level) in LEVEL_ABBR.values().enumerate() { // output_levelsはlevelsからundefinedを除外した配列であり、各要素は必ず初期化されているのでSomeであることが保証されているのでunwrapをそのまま実施