fix: more zig-0.15 API fixes
This commit is contained in:
parent
63391c5905
commit
aa6c78f5cb
2 changed files with 3 additions and 3 deletions
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.cbor = .{
|
.cbor = .{
|
||||||
.url = "git+https://github.com/neurocyte/cbor?ref=master#7886ab288da37b674153b2f668bfdfc211b4b684",
|
.url = "git+https://github.com/neurocyte/cbor?ref=master#7d2eeb68c8a2fb3f4d6baad6cc04c521b92974c0",
|
||||||
.hash = "cbor-1.0.0-RcQE_AkwAQAIDbgyJd2KnF4OaTmSOq4Qfb6BueYgg4UJ",
|
.hash = "cbor-1.0.0-RcQE_AswAQAPlqBCZXYQf9DZXn-0Ubt8Mk03ZcJWcsAG",
|
||||||
},
|
},
|
||||||
.asio = .{
|
.asio = .{
|
||||||
.url = "git+https://github.com/neurocyte/asio#0f1cbf24e5fb6fabe7078a20b76452f42e24a0df",
|
.url = "git+https://github.com/neurocyte/asio#0f1cbf24e5fb6fabe7078a20b76452f42e24a0df",
|
||||||
|
|
|
@ -220,7 +220,7 @@ pub const message = struct {
|
||||||
return if (cbor.match(self.buf, m)) |ret| ret else |e| exit_error(e, @errorReturnTrace());
|
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, .{});
|
return cbor.toJsonWriter(self.buf, writer, .{});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue