From aa6c78f5cbda65def81e0e85296e94bdf7089f01 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 24 Sep 2025 22:32:43 +0200 Subject: [PATCH] fix: more zig-0.15 API fixes --- build.zig.zon | 4 ++-- src/thespian.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index a9141c7..1c7b692 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -5,8 +5,8 @@ .dependencies = .{ .cbor = .{ - .url = "git+https://github.com/neurocyte/cbor?ref=master#7886ab288da37b674153b2f668bfdfc211b4b684", - .hash = "cbor-1.0.0-RcQE_AkwAQAIDbgyJd2KnF4OaTmSOq4Qfb6BueYgg4UJ", + .url = "git+https://github.com/neurocyte/cbor?ref=master#7d2eeb68c8a2fb3f4d6baad6cc04c521b92974c0", + .hash = "cbor-1.0.0-RcQE_AswAQAPlqBCZXYQf9DZXn-0Ubt8Mk03ZcJWcsAG", }, .asio = .{ .url = "git+https://github.com/neurocyte/asio#0f1cbf24e5fb6fabe7078a20b76452f42e24a0df", diff --git a/src/thespian.zig b/src/thespian.zig index 78a67ac..3b50feb 100644 --- a/src/thespian.zig +++ b/src/thespian.zig @@ -220,7 +220,7 @@ pub const message = struct { return if (cbor.match(self.buf, m)) |ret| ret else |e| exit_error(e, @errorReturnTrace()); } - pub fn format(self: @This(), comptime _: []const u8, _: std.fmt.FormatOptions, writer: anytype) !void { + pub fn format(self: @This(), writer: anytype) std.Io.Writer.Error!void { return cbor.toJsonWriter(self.buf, writer, .{}); } };