diff options
Diffstat (limited to 'timer.ha')
| -rw-r--r-- | timer.ha | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
