~sircmpwn/himitsu-ssh

e26539c75cfb862e6720a8dfc37be2434ae6c661 — Armin Preiml 4 months ago 9c28379
client::next: match done
1 files changed, 3 insertions(+), 1 deletions(-)

M cmd/hissh-export/main.ha
M cmd/hissh-export/main.ha => cmd/hissh-export/main.ha +3 -1
@@ 55,10 55,12 @@ export fn main() void = {
	const iter = client::query(conn, client::operation::QUERY, &q, 0)!;
	for (true) {
		const key = match (client::next(&iter)) {
		case void =>
		case done =>
			break;
		case let key: query::query =>
			yield key;
		case let e: client::error =>
			fmt::fatal(client::strerror(e));
		};
		defer query::finish(&key);
		encode(&key);