diff options
| author | Julian Hurst <ark@mansus.space> | 2022-12-03 20:02:17 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2022-12-03 20:02:17 +0100 |
| commit | 1edfb56af19905fb30961ee8162afe8e1719b400 (patch) | |
| tree | d47603488eda49d1b401be0d5d164f56b1db9b54 /main.ha | |
| parent | 4fa5bdff20cfd1dcceae402377b0c38e058ff512 (diff) | |
| download | ilhare-1edfb56af19905fb30961ee8162afe8e1719b400.tar.gz | |
Handle the error from strings::fromutf8 calls
This fix just uses an error assertion operator to handle the error from strings::fromutf8
Diffstat (limited to 'main.ha')
| -rw-r--r-- | main.ha | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -79,7 +79,7 @@ export fn main() void = { fmt::fatal(io::strerror(e)); }; defer free(in); - let sin = strings::fromutf8(in); + let sin = strings::fromutf8(in)!; sin = strings::trim(sin, '\n'); let items = strings::split(sin, "\n"); // freed by list::finish itemscopy = strings::dupall(items); |
