From 1d1df7b540721d58db174764a0f720e3c638a67b Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Tue, 22 Jul 2025 08:23:22 +0300 Subject: Whitelist allowed inline bots Also update to Zig 0.14.1 Also don't send the animations rn --- src/json.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/json.zig') diff --git a/src/json.zig b/src/json.zig index 9252344..ff07531 100644 --- a/src/json.zig +++ b/src/json.zig @@ -50,7 +50,7 @@ pub fn makeJsonParseFromValue(T: type) JsonParseFromValue(T) { pub fn makeJsonParseFromValueWithTag(T: type, comptime tag: [:0]const u8) JsonParseFromValue(T) { const union_info = switch (@typeInfo(T)) { - .Union => |info| blk: { + .@"union" => |info| blk: { if (info.tag_type == null) { @compileError("Only tagged unions supported, got '" ++ @typeName(T) ++ "'"); } @@ -62,12 +62,12 @@ pub fn makeJsonParseFromValueWithTag(T: type, comptime tag: [:0]const u8) JsonPa const TagType = union_info.tag_type.?; const Base = blk: { - const info = std.builtin.Type{ .Struct = .{ + const info = std.builtin.Type{ .@"struct" = .{ .layout = .auto, .fields = &.{.{ .name = tag, .type = TagType, - .default_value = null, + .default_value_ptr = null, .is_comptime = false, .alignment = 0, }}, -- cgit v1.2.3