From 3ee5e9e90023abc0fbe99fb459b969d40b53d4fa Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Mon, 5 Sep 2022 00:39:15 +0900 Subject: [PATCH] changed total event count from iterator.count to count up --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 998eafe1..4686af24 100644 --- a/src/main.rs +++ b/src/main.rs @@ -569,8 +569,6 @@ impl App { let mut tl = Timeline::new(); let mut parser = parser.unwrap(); - record_cnt += &parser.records_json_value().count(); - let mut records = parser.records_json_value(); loop { @@ -581,6 +579,7 @@ impl App { if next_rec.is_none() { break; } + record_cnt += 1; let record_result = next_rec.unwrap(); if record_result.is_err() {