diff options
| author | 2021-12-29 12:05:23 +0100 | |
|---|---|---|
| committer | 2021-12-29 12:05:23 +0100 | |
| commit | 802a04a854e65254b0632d9785b2b0f6154686b8 (patch) | |
| tree | 777e3b3a9b368b281b95bfef9c78c5a1b6d931e5 /clap | |
| parent | Tag 0.5.0 (diff) | |
| download | zig-clap-802a04a854e65254b0632d9785b2b0f6154686b8.tar.gz zig-clap-802a04a854e65254b0632d9785b2b0f6154686b8.tar.xz zig-clap-802a04a854e65254b0632d9785b2b0f6154686b8.zip | |
Update usage of process.ArgIterator to be inline with newest zig
Also add windows CI, as this compiler error was only triggered on
windows builds
Diffstat (limited to 'clap')
| -rw-r--r-- | clap/args.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clap/args.zig b/clap/args.zig index 16299c8..90c50fa 100644 --- a/clap/args.zig +++ b/clap/args.zig | |||
| @@ -73,7 +73,7 @@ pub const OsIterator = struct { | |||
| 73 | 73 | ||
| 74 | pub fn next(iter: *OsIterator) Error!?[:0]const u8 { | 74 | pub fn next(iter: *OsIterator) Error!?[:0]const u8 { |
| 75 | if (builtin.os.tag == .windows) { | 75 | if (builtin.os.tag == .windows) { |
| 76 | return try iter.args.next(iter.arena.allocator()) orelse return null; | 76 | return (try iter.args.next(iter.arena.allocator())) orelse return null; |
| 77 | } else { | 77 | } else { |
| 78 | return iter.args.nextPosix(); | 78 | return iter.args.nextPosix(); |
| 79 | } | 79 | } |