fix: zig update build errors
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m35s
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m35s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user