aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mihi/src/exercise.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mihi/src/exercise.rs b/lib/mihi/src/exercise.rs
index 5f45079..7249919 100644
--- a/lib/mihi/src/exercise.rs
+++ b/lib/mihi/src/exercise.rs
@@ -152,7 +152,7 @@ pub fn update_exercise(exercise: Exercise) -> Result<(), String> {
}
/// Updates the 'updated_at' column for an exercise.
-pub fn touch_exercise(exercise: Exercise) -> Result<(), String> {
+pub fn touch_exercise(exercise: &Exercise) -> Result<(), String> {
if exercise.id == 0 {
return Err("invalid exercise to update; seems it has not been created before".to_string());
}