From 88edafd00ec25dcc01deb8fc69e9864a16f8717c Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Tue, 20 Dec 2022 12:36:10 +0100 Subject: Update to latest Zig master Rename `builtin.Struct.field_type` to `builtin.Struct.type`. --- clap.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clap.zig b/clap.zig index 23e267b..f16a97c 100644 --- a/clap.zig +++ b/clap.zig @@ -528,7 +528,7 @@ test "parseParams" { }, .{ .id = .{ - .desc = + .desc = \\ This is \\ help spanning multiple \\ lines @@ -769,8 +769,8 @@ pub fn parseEx( // fields to slices and return that. var result_args = Arguments(Id, params, value_parsers, .slice){}; inline for (meta.fields(@TypeOf(arguments))) |field| { - if (@typeInfo(field.field_type) == .Struct and - @hasDecl(field.field_type, "toOwnedSlice")) + if (@typeInfo(field.type) == .Struct and + @hasDecl(field.type, "toOwnedSlice")) { const slice = try @field(arguments, field.name).toOwnedSlice(allocator); @field(result_args, field.name) = slice; @@ -922,7 +922,7 @@ fn Arguments( fields[i] = .{ .name = longest.name, - .field_type = @TypeOf(default_value), + .type = @TypeOf(default_value), .default_value = @ptrCast(*const anyopaque, &default_value), .is_comptime = false, .alignment = @alignOf(@TypeOf(default_value)), -- cgit v1.2.3