From ecb79fc433765688cf60ac4ee8ebe38e782641cd Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 2 Nov 2026 09:05:43 +0100 Subject: update to zig 0.17 --- src/zilch/html/Attribute.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/zilch/html/Attribute.zig') diff --git a/src/zilch/html/Attribute.zig b/src/zilch/html/Attribute.zig index 1db49a0..0aa0354 100644 --- a/src/zilch/html/Attribute.zig +++ b/src/zilch/html/Attribute.zig @@ -13,12 +13,11 @@ pub fn from(attributes: anytype) []const Self { @compileError("struct needed"); } - const fields = info.@"struct".fields; + const fields = info.@"struct".field_names; var attrs: []const Self = &.{}; - for (fields) |field| { - const name = field.name; + for (fields) |name| { const value = @field(attributes, name); const next_attr: []const Self = &.{.{ .name = name, .value = value }}; -- cgit v1.2.3-70-g09d2