From e2e0951c816821c80ba022d38ea971e73cc4f20a Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Wed, 5 Jan 2022 03:12:44 +0000 Subject: [PATCH] Make a public method --- taskchampion/src/replica.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/taskchampion/src/replica.rs b/taskchampion/src/replica.rs index 576de2f7a..17b058184 100644 --- a/taskchampion/src/replica.rs +++ b/taskchampion/src/replica.rs @@ -47,7 +47,10 @@ impl Replica { /// Update an existing task. If the value is Some, the property is added or updated. If the /// value is None, the property is deleted. It is not an error to delete a nonexistent /// property. - pub(crate) fn update_task( + /// + /// This is a low-level method, and requires knowledge of the Task data model. Prefer to + /// use the [`TaskMut`] methods to modify tasks, where possible. + pub fn update_task( &mut self, uuid: Uuid, property: S1,