From 73a44a697af03bfeb49f191a739a139b26afc9fc Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 21 Dec 2021 19:33:55 +0100 Subject: [PATCH] Error when moving untimed entry to new time --- src/eval/command.rs | 10 ++++++++-- src/eval/error.rs | 8 ++++++++ src/files/commands.rs | 2 +- src/files/parse.rs | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/eval/command.rs b/src/eval/command.rs index b277a7d..e65e6e6 100644 --- a/src/eval/command.rs +++ b/src/eval/command.rs @@ -244,6 +244,7 @@ impl<'a> CommandState<'a> { } fn eval_except(&mut self, date: NaiveDate) { + // TODO Error if nothing is removed? self.dated.remove(&date); } @@ -252,7 +253,7 @@ impl<'a> CommandState<'a> { span: Span, from: NaiveDate, to: Option, - to_time: Option