Skip to content

Commit 306d8bf

Browse files
authored
Merge pull request #29 from max-legrand/feature/zig-master
Update to be compatible with zig master branch
2 parents c2e3122 + 3e9854e commit 306d8bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/Parser.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ fn parseOptionValue(
342342
// If we have consumed a single value only, check if the policy of an arg
343343
// allows to return it as a single value.
344344
if (values.items.len == 1 and !arg.hasProperty(.takes_multiple_values)) {
345-
const value = values.pop();
345+
const value = values.pop().?;
346346
values.deinit();
347347
// No verification required here as it is already verfied while consuming.
348348
return MatchedArgValue.initSingle(value);

0 commit comments

Comments
 (0)