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(),