Merge branch 'main' into issue94

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

View File

@@ -57,6 +57,7 @@ enum Prop {
Start,
Status,
Wait,
Entry,
}
#[allow(clippy::ptr_arg)]
@@ -284,6 +285,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)
}