From 2f306304b3053909c0e25028b71c9cf3a8aded40 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Tue, 3 Sep 2024 19:14:34 +0200 Subject: [PATCH] chore: clippy findings --- src/clock.rs | 2 +- src/clock/ui.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clock.rs b/src/clock.rs index 41d5780..bd8be09 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -6,7 +6,7 @@ #![allow(clippy::cast_possible_wrap)] #![allow(clippy::cast_sign_loss)] // it should only be positive anyway -use chrono::{Date, DateTime, Local, SubsecRound, Timelike}; +use chrono::{DateTime, Local, SubsecRound, Timelike}; use clap::Parser; use libpt::cli::args::HELP_TEMPLATE; use libpt::cli::clap::ArgGroup; diff --git a/src/clock/ui.rs b/src/clock/ui.rs index ebe0b9e..4892fec 100644 --- a/src/clock/ui.rs +++ b/src/clock/ui.rs @@ -28,8 +28,8 @@ impl Data { pub fn new(timebar_type: TimeBarLength) -> Self { let mut this = Self { now: [Default::default(); 2], - fdate: ["".to_string(), "".to_string()], - ftime: ["".to_string(), "".to_string()], + fdate: [String::new(), String::new()], + ftime: [String::new(), String::new()], timebar_ratio: [Default::default(); 2], started_at: Local::now(), idx: Default::default(),