From 6b0b840a812b43fba1a3e6ee7657d729f77b2221 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 14 Jul 2024 15:11:09 -0700 Subject: [PATCH] termio: writer needs a mut pointer --- src/termio/writer.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/termio/writer.zig b/src/termio/writer.zig index a82169230..7795dba34 100644 --- a/src/termio/writer.zig +++ b/src/termio/writer.zig @@ -66,7 +66,7 @@ pub const Writer = union(enum) { mutex: ?*std.Thread.Mutex, ) void { switch (self.*) { - .mailbox => |mb| send: { + .mailbox => |*mb| send: { // Try to write to the mailbox with an instant timeout. This is the // fast path because we can queue without a lock. if (mb.mailbox.push(msg, .{ .instant = {} }) > 0) break :send;