From 2d9db156ae928860a9acf2f1260750d3b44a4c98 Mon Sep 17 00:00:00 2001 From: owl Date: Fri, 30 Aug 2024 12:33:10 +0200 Subject: adapt to latest zig changes --- clap/parsers.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clap') diff --git a/clap/parsers.zig b/clap/parsers.zig index 874c23b..8abdf57 100644 --- a/clap/parsers.zig +++ b/clap/parsers.zig @@ -92,9 +92,9 @@ test "enumeration" { } fn ReturnType(comptime P: type) type { - return @typeInfo(P).Fn.return_type.?; + return @typeInfo(P).@"fn".return_type.?; } pub fn Result(comptime P: type) type { - return @typeInfo(ReturnType(P)).ErrorUnion.payload; + return @typeInfo(ReturnType(P)).error_union.payload; } -- cgit v1.2.3