feat: make cbor.writeJsonValue public

This commit is contained in:
CJ van den Berg 2024-11-17 22:15:56 +01:00
parent 2b380bbef4
commit 394b434169
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -989,7 +989,7 @@ pub fn toJsonOptsAlloc(a: std.mem.Allocator, cbor_buf: []const u8, opts: std.jso
return buf.toOwnedSlice();
}
fn writeJsonValue(writer: anytype, value: json.Value) !void {
pub fn writeJsonValue(writer: anytype, value: json.Value) !void {
try switch (value) {
.array => |_| unreachable,
.object => |_| unreachable,