| ... | ... | @@ -18,8 +18,7 @@ pub fn close(self: File) void { |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | pub const ReadError = switch (builtin.target.os.tag) { |
| 21 | | .linux, |
| 22 | | => sys_linux.errno.Error, |
| 21 | .linux => sys_linux.errno.Error, |
| 23 | 22 | else => @compileError("TODO"), |
| 24 | 23 | }; |
| 25 | 24 | pub usingnamespace nio.Readable(@This(), ._bare); |
| ... | ... | @@ -37,9 +36,7 @@ pub fn anyReadable(self: File) nio.AnyReadable { |
| 37 | 36 | } |
| 38 | 37 | }; |
| 39 | 38 | return .{ |
| 40 | | .vtable = &.{ |
| 41 | | .read = S.read, |
| 42 | | }, |
| 39 | .vtable = &.{ .read = S.read }, |
| 43 | 40 | .state = @ptrFromInt(@as(usize, @bitCast(@as(isize, @intCast(@intFromEnum(self.fd)))))), |
| 44 | 41 | }; |
| 45 | 42 | } |