feat: make cbor.writeJsonValue public
This commit is contained in:
parent
2b380bbef4
commit
394b434169
1 changed files with 1 additions and 1 deletions
|
@ -989,7 +989,7 @@ pub fn toJsonOptsAlloc(a: std.mem.Allocator, cbor_buf: []const u8, opts: std.jso
|
||||||
return buf.toOwnedSlice();
|
return buf.toOwnedSlice();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn writeJsonValue(writer: anytype, value: json.Value) !void {
|
pub fn writeJsonValue(writer: anytype, value: json.Value) !void {
|
||||||
try switch (value) {
|
try switch (value) {
|
||||||
.array => |_| unreachable,
|
.array => |_| unreachable,
|
||||||
.object => |_| unreachable,
|
.object => |_| unreachable,
|
||||||
|
|
Loading…
Add table
Reference in a new issue