summaryrefslogtreecommitdiff
path: root/timer.ha
diff options
context:
space:
mode:
Diffstat (limited to 'timer.ha')
-rw-r--r--timer.ha4
1 files changed, 2 insertions, 2 deletions
diff --git a/timer.ha b/timer.ha
index 3c51c11..4e1cb34 100644
--- a/timer.ha
+++ b/timer.ha
@@ -56,11 +56,11 @@ fn human_readable(duration: time::duration) str = {
width = 2,
...
};
- return fmt::asprintf("{%}:{%}:{%}", hours, mods, mins, mods, secs, mods);
+ return fmt::asprintf("{%}:{%}:{%}", hours, mods, mins, mods, secs, mods)!;
};
fn parse_duration(duration: const str) (time::duration | parseerror | strconv::invalid | strconv::overflow) = {
- const spl = strings::split(duration, ":");
+ const spl = strings::split(duration, ":")!;
defer free(spl);
if (len(spl) >= 4 || len(spl) < 1) {
return parseerror;