| author | |
| committer | |
| log | 8895c06475b9a14f4e08a18d3b39bc4162e424c0 |
| tree | 44ef1c5d8f6b0fdc6617f305fe9c98a6ba1a8522 |
| parent | 4ff301b3fea0039bd6247ceff407cb40cef6f8c7 |
1 files changed, 1 insertions(+), 1 deletions(-)
File.zig+1-1| ... | ... | @@ -26,7 +26,7 @@ pub fn read(self: File, buffer: []u8) ReadError!usize { |
| 26 | 26 | |
| 27 | 27 | pub fn anyReadable(self: File) nio.AnyReadable { |
| 28 | 28 | const S = struct { |
| 29 | fn foo(s: *anyopaque, buffer: []u8) anyerror!usize { | |
| 29 | fn foo(s: *allowzero anyopaque, buffer: []u8) anyerror!usize { | |
| 30 | 30 | const fd: nfs.Handle = @enumFromInt(@intFromPtr(s)); |
| 31 | 31 | const f: File = .{ .fd = fd }; |
| 32 | 32 | return f.read(buffer); |