diff options
| author | Julian Hurst <ark@mansus.space> | 2025-11-12 22:08:14 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2025-11-12 22:08:14 +0100 |
| commit | 936b7f4baa1fc65ac8df534e2ef51fd06ba710aa (patch) | |
| tree | 13c74528cbca663dc9615bb4fd8c5446b580241a /timer.ha | |
| parent | 12d8f47d44e1ceb5e6b787272f38f6bdefcce33a (diff) | |
| download | timer-master.tar.gz | |
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; |
