From 1db0aae933e1d40feb65de61d5f6b80f0594d3b8 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Wed, 10 Jul 2024 15:19:31 +0200 Subject: [PATCH] chore: remove old todo comments --- src/clock.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/clock.rs b/src/clock.rs index 307909e..6452cdf 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -93,7 +93,7 @@ impl UiData { #[must_use] #[inline] pub fn changed(&self) -> bool { - // NOTE: the timebar ratio is discarded, so that we only render the ui when the time + // the timebar ratio is discarded, so that we only render the ui when the time // (second) changes let r = self.fdate[0] != self.fdate[1] || self.ftime[0] != self.ftime[1]; trace!("changed: {r}"); @@ -152,7 +152,6 @@ impl Clock { fn maybe_reset_since_zero(&mut self) { if let Some(len) = self.timebar_len() { trace!("Local Time: {}", Local::now()); - // BUG: these resets trigger multiple times let since_last_reset = Local::now().signed_duration_since(self.last_reset.unwrap()); match len { TimeBarLength::Custom(_) => {