diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-29 22:37:03 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-29 22:37:03 +0100 |
| commit | 86095df8b219510bf5cfb9f5d672695bd8b889c6 (patch) | |
| tree | 4da550861f40ae39f68a5bd78d30f531e4187ed9 /lib | |
| parent | e07c113c6bdd397002ecaaf21766532d4d3ded13 (diff) | |
| download | mihi-86095df8b219510bf5cfb9f5d672695bd8b889c6.tar.gz mihi-86095df8b219510bf5cfb9f5d672695bd8b889c6.zip | |
run: show the exercise's lessons at the end
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mihi/src/exercise.rs | 2 |
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()); } |
