~stacyharper/bonsai

8dc8767fc415818babe02b79f3f40866b98aadd9 — Stacy Harper a month ago 7143907 main
bump hare fromutf8 usage
3 files changed, 3 insertions(+), 3 deletions(-)

M bonsai/state_machine.ha
M cmd/bonsaictl/main.ha
M cmd/bonsaid/socket.ha
M bonsai/state_machine.ha => bonsai/state_machine.ha +1 -1
@@ 170,7 170,7 @@ export fn sync_back_wait_child(state: *state_machine, abort_it: bool) bool = {
		match (bufio::scanline(wait_pipes.0)) {
		case let buf: []u8 =>
			defer free(buf);
			const string = strings::fromutf8(buf);
			const string = strings::fromutf8(buf) as str;
			if (string == "WOKEUP") {
				break;
			};

M cmd/bonsaictl/main.ha => cmd/bonsaictl/main.ha +1 -1
@@ 108,7 108,7 @@ fn send(
	case let line: []u8 =>
		// NB. Can't defer free(line), causes a use-after-free in
		// fmt::fatal
		let resp = strings::fromutf8(line);
		let resp = strings::fromutf8(line) as str;
		let resp = strings::cut(resp, " ");
		switch (resp.0) {
		case "end" =>

M cmd/bonsaid/socket.ha => cmd/bonsaid/socket.ha +1 -1
@@ 235,7 235,7 @@ fn client_readable(serv: *server, client: *client) void = {
			return;
		};

		const line = match (strings::try_fromutf8(client.rbuf[..i])) {
		const line = match (strings::fromutf8(client.rbuf[..i])) {
		case let s: str =>
			yield s;
		case utf8::invalid =>