| ... | @@ -98,7 +98,7 @@ pub fn FixedBufferStream(comptime Buffer: type) type { | ... | @@ -98,7 +98,7 @@ pub fn FixedBufferStream(comptime Buffer: type) type { |
| 98 | | 98 | |
| 99 | pub fn anyWritable(self: *Self) nio.AnyWritable { | 99 | pub fn anyWritable(self: *Self) nio.AnyWritable { |
| 100 | const S = struct { | 100 | const S = struct { |
| 101 | fn write(s: *allowzero anyopaque, buffer: []u8) anyerror!usize { | 101 | fn write(s: *allowzero anyopaque, buffer: []const u8) anyerror!usize { |
| 102 | const fbs: *Self = @ptrCast(@alignCast(s)); | 102 | const fbs: *Self = @ptrCast(@alignCast(s)); |
| 103 | return fbs.write(buffer); | 103 | return fbs.write(buffer); |
| 104 | } | 104 | } |