From 4b7241f5a4a3045a10ff73a02b9f228327872abb Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sat, 9 Sep 2023 19:27:22 -0700 Subject: [PATCH] fixed clippy issues --- time_tracker/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/time_tracker/src/main.rs b/time_tracker/src/main.rs index eb88a3a..b3a40f4 100644 --- a/time_tracker/src/main.rs +++ b/time_tracker/src/main.rs @@ -145,10 +145,8 @@ fn main() -> Result<(), Box> { now.day(), now.year() )); - } else { - if line != "" { + } else if !line.is_empty() { body_content.push(line.to_string()); - } } checked.retain(|val| val != &item); }