From 802a04a854e65254b0632d9785b2b0f6154686b8 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Wed, 29 Dec 2021 12:05:23 +0100 Subject: 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 --- .github/workflows/main.yml | 5 ++++- clap/args.zig | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f6e216..8685d1b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,10 @@ on: jobs: test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v2.4.0 with: 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 { pub fn next(iter: *OsIterator) Error!?[:0]const u8 { if (builtin.os.tag == .windows) { - return try iter.args.next(iter.arena.allocator()) orelse return null; + return (try iter.args.next(iter.arena.allocator())) orelse return null; } else { return iter.args.nextPosix(); } -- cgit v1.2.3