From a91b2e8ddb5c92ba3e81d504812dbfea49150061 Mon Sep 17 00:00:00 2001 From: Simon Hartcher Date: Wed, 30 Apr 2025 09:56:41 +1000 Subject: [PATCH] refactor(detectArrayStyle): remove void value from hashmap generation --- src/xml_shaper.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xml_shaper.zig b/src/xml_shaper.zig index f1f0371..535d42f 100644 --- a/src/xml_shaper.zig +++ b/src/xml_shaper.zig @@ -111,7 +111,6 @@ fn detectArrayStyle(comptime T: type, element: *xml.Element, options: ParseOptio const field_names = comptime blk: { var result: [std.meta.fieldNames(T).len]struct { []const u8, - void, } = undefined; for (std.meta.fieldNames(T), 0..) |field_name, i| { @@ -120,7 +119,7 @@ fn detectArrayStyle(comptime T: type, element: *xml.Element, options: ParseOptio else field_name; - result[i] = .{ key, {} }; + result[i] = .{key}; } break :blk std.StaticStringMap(void).initComptime(result);