| ... | @@ -26,7 +26,7 @@ pub fn read(self: File, buffer: []u8) ReadError!usize { | ... | @@ -26,7 +26,7 @@ pub fn read(self: File, buffer: []u8) ReadError!usize { |
| 26 | | 26 | |
| 27 | pub fn anyReadable(self: File) nio.AnyReadable { | 27 | pub fn anyReadable(self: File) nio.AnyReadable { |
| 28 | const S = struct { | 28 | const S = struct { |
| 29 | fn foo(s: *anyopaque, buffer: []u8) anyerror!usize { | 29 | fn foo(s: *allowzero anyopaque, buffer: []u8) anyerror!usize { |
| 30 | const fd: nfs.Handle = @enumFromInt(@intFromPtr(s)); | 30 | const fd: nfs.Handle = @enumFromInt(@intFromPtr(s)); |
| 31 | const f: File = .{ .fd = fd }; | 31 | const f: File = .{ .fd = fd }; |
| 32 | return f.read(buffer); | 32 | return f.read(buffer); |