diff --git a/src/clock.rs b/src/clock.rs index bd8be09..5824b10 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -70,8 +70,6 @@ pub struct Clock { pub(crate) last_reset: Option>, #[clap(skip)] pub(crate) did_notify: bool, - #[clap(skip)] - pub(crate) started_at: DateTime, } impl Clock { diff --git a/src/clock/ui.rs b/src/clock/ui.rs index 4892fec..594799d 100644 --- a/src/clock/ui.rs +++ b/src/clock/ui.rs @@ -27,12 +27,12 @@ pub struct Data { impl Data { pub fn new(timebar_type: TimeBarLength) -> Self { let mut this = Self { - now: [Default::default(); 2], + now: [DateTime::default(); 2], fdate: [String::new(), String::new()], ftime: [String::new(), String::new()], - timebar_ratio: [Default::default(); 2], + timebar_ratio: [Option::default(); 2], started_at: Local::now(), - idx: Default::default(), + idx: usize::default(), timebar_type, };