fix: zig update build errors
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m35s

This commit is contained in:
2025-08-06 16:14:22 +02:00
parent 4f6cabf898
commit c50b10f32d
4 changed files with 9 additions and 10 deletions

View File

@@ -62,19 +62,18 @@ pub fn write(buf: []const u8) !usize {
return try posix.write(posix.STDIN_FILENO, buf);
}
fn contextWrite(context: @This(), data: []const u8) anyerror!usize {
fn contextWrite(context: *const anyopaque, data: []const u8) anyerror!usize {
_ = context;
return try posix.write(posix.STDOUT_FILENO, data);
}
const Writer = std.io.Writer(
@This(),
anyerror,
contextWrite,
);
const Writer = std.io.AnyWriter;
pub fn writer() Writer {
return .{ .context = .{} };
return .{
.context = &.{},
.writeFn = contextWrite,
};
}
pub fn setCursorPosition(pos: Point) !void {