Merge branch 'main' into issue327

This commit is contained in:
Dustin J. Mitchell
2022-01-23 15:31:02 +00:00
3 changed files with 17 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ enum Prop {
Status,
Wait,
End,
Entry,
}
#[allow(clippy::ptr_arg)]
@@ -292,6 +293,10 @@ impl<'r> TaskMut<'r> {
self.set_string(Prop::Description.as_ref(), Some(description))
}
pub(crate) fn set_entry(&mut self, entry: DateTime<Utc>) -> anyhow::Result<()> {
self.set_timestamp(Prop::Entry.as_ref(), Some(entry))
}
pub fn set_wait(&mut self, wait: Option<DateTime<Utc>>) -> anyhow::Result<()> {
self.set_timestamp(Prop::Wait.as_ref(), wait)
}