From fecf6ebed507d92eef557674396c893514cac9cd Mon Sep 17 00:00:00 2001 From: murmeldin Date: Thu, 22 Aug 2024 23:26:39 +0200 Subject: [PATCH] small tweaks --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index cde2fc7..2b42aea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -305,6 +305,7 @@ fn main() -> Result<(), Box> { // figure out where we should be // deltas has either 2 or 3 days, if 3 then the middle one is == 0 (i.e. today) let deltas: Vec = nearest_plenum_days.iter().map(|&d| (d - today).num_days()).collect(); + trace_var!(deltas); // find the relevant one: let delta = *match last_state { // In normal state, the past doesn't matter – just pick the next occurrence. @@ -748,6 +749,7 @@ type TransitionFunction = fn( #[rustfmt::skip] const TRANSITION_LUT: [[ST; 5]; 5] = [ + /* vvv IS vvv | >>> SHOULD >>> */ /* NORMAL ANNOUNCED REMINDED WAITING LOGGED */ /* NORMAL */ [ST::Nop, ST::DoAnnouncement, ST::DoReminder, ST::Nop, ST::Nop], /* ANNOUNCED */ [ST::DoCleanup, ST::Nop, ST::DoReminder, ST::Nop, ST::DoProtocol],