From e47d5ba5aa04c29031b196d16322d5cc3ef2c42f Mon Sep 17 00:00:00 2001 From: Max Schillinger Date: Sat, 13 Jul 2024 11:10:17 +0200 Subject: [PATCH] Update for Hare 0.24.2 --- emailbook-hare.ha | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emailbook-hare.ha b/emailbook-hare.ha index bbcc026..03b0511 100644 --- a/emailbook-hare.ha +++ b/emailbook-hare.ha @@ -10,7 +10,7 @@ use regex; use strconv; use strings; -def version = "0.1.0"; +def version = "0.1.1"; def max_header_size = 20000z; // bytes let emailbook_file: io::file = 0; @@ -459,10 +459,10 @@ fn parse_file(source: (str | void), mailboxes: *[]str, fields: *[]str) void = { }; yield buf; }; - const tokenizer = bytes::tokenize(file_content, ['\n']); + const tokenizer = bytes::tokenize(file_content, '\n'); for (true) { const token = match (bytes::next_token(&tokenizer)) { - case void => break; + case done => break; case let t: []u8 => yield t; }; const line = match (strings::fromutf8(token)) { -- 2.45.2