From 936b7f4baa1fc65ac8df534e2ef51fd06ba710aa Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Wed, 12 Nov 2025 22:08:14 +0100 Subject: Update for nomem --- timer.ha | 4 ++-- 1 file 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; -- cgit v1.2.3