~sircmpwn/public-inbox

himitsu-totp: Fix io::close errors v1 APPLIED

Eyal Sawady: 1
 Fix io::close errors

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/public-inbox/patches/32106/mbox | git am -3
Learn more about email & git

[PATCH himitsu-totp] Fix io::close errors Export this patch

---
 cmd/hitotp/main.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/hitotp/main.ha b/cmd/hitotp/main.ha
index 319c931..708b1f9 100644
--- a/cmd/hitotp/main.ha
+++ b/cmd/hitotp/main.ha
@@ -108,7 +108,7 @@ export fn main() void = {
	case let e: net::error =>
		fmt::fatal(net::strerror(e));
	};
	defer io::close(conn);
	defer io::close(conn)!;

	fmt::fprint(conn, if (add) "add" else "query -d")!;
	for (let i = 0z; i < len(query); i += 1) {
-- 
2.36.0
Thanks!

To git@git.sr.ht:~sircmpwn/himitsu-totp
   569632e..30ab3c3  master -> master