| ... | @@ -19,7 +19,7 @@ pub const ReadError = switch (builtin.target.os.tag) { | ... | @@ -19,7 +19,7 @@ pub const ReadError = switch (builtin.target.os.tag) { |
| 19 | => errno.Error, | 19 | => errno.Error, |
| 20 | else => @compileError("TODO"), | 20 | else => @compileError("TODO"), |
| 21 | }; | 21 | }; |
| 22 | pub usingnamespace nio.Readable(@This()); | 22 | pub usingnamespace nio.Readable(@This(), ._bare); |
| 23 | pub fn read(self: File, buffer: []u8) ReadError!usize { | 23 | pub fn read(self: File, buffer: []u8) ReadError!usize { |
| 24 | return sys_libc.read(@intFromEnum(self.fd), buffer); | 24 | return sys_libc.read(@intFromEnum(self.fd), buffer); |
| 25 | } | 25 | } |