Merge branch 'main' into issue327
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user