authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-02 19:11:44 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-02 19:11:44 -08:00
log13c63000cecd9a2d66efa68e62d02dbc3fbae3fd
tree2f3664b3a808f2c2aa37e2e3e30f30bf1b0ac04d
parentb31c8f71fa44e38c842898c85c37d495cd9a5e1c

tidy a bit


2 files changed, 3 insertions(+), 7 deletions(-)

File.zig+2-5
......@@ -18,8 +18,7 @@ pub fn close(self: File) void {
1818}
1919
2020pub const ReadError = switch (builtin.target.os.tag) {
21 .linux,
22 => sys_linux.errno.Error,
21 .linux => sys_linux.errno.Error,
2322 else => @compileError("TODO"),
2423};
2524pub usingnamespace nio.Readable(@This(), ._bare);
......@@ -37,9 +36,7 @@ pub fn anyReadable(self: File) nio.AnyReadable {
3736 }
3837 };
3938 return .{
40 .vtable = &.{
41 .read = S.read,
42 },
39 .vtable = &.{ .read = S.read },
4340 .state = @ptrFromInt(@as(usize, @bitCast(@as(isize, @intCast(@intFromEnum(self.fd)))))),
4441 };
4542}
nfs.zig+1-2
......@@ -8,8 +8,7 @@ pub const File = @import("./File.zig");
88const os = builtin.target.os.tag;
99
1010pub const Handle = switch (os) {
11 .linux,
12 => enum(c_int) { _ },
11 .linux => enum(c_int) { _ },
1312 else => @compileError("TODO"),
1413};
1514