diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2025-01-15 18:08:44 +0100 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2025-01-15 18:09:44 +0100 |
| commit | 4129e3dba2cc3953af6b97fc1c99a1516b9214cd (patch) | |
| tree | 6ac189e2733d817a7002eb622f5155cc3a14819f /hatask.ha | |
| parent | ee5a390445db5af3635bd4c797aed86222f82e80 (diff) | |
| download | hatask-4129e3dba2cc3953af6b97fc1c99a1516b9214cd.tar.gz | |
Update code to compile with new Hare version
append may now return an error so asserts were added
Diffstat (limited to 'hatask.ha')
| -rw-r--r-- | hatask.ha | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,13 +40,13 @@ fn listtasks(root: str = "tasks", context: str = "*") ([]task | rtaskerror) = { if (context == "*" || fnmatch::fnmatch(context, dirent.name)) { let buf = path::init()?; const p = path::push(&buf, root, dirent.name)?; - append(tasks, listtasks(p)?...); + append(tasks, listtasks(p)?...)!; }; } else { let buf = path::init()?; const p = path::push(&buf, root, dirent.name)?; let t = readtask(p)?; - append(tasks, t); + append(tasks, t)!; }; }; return tasks; |
