Skip to content

Commit

Permalink
Update to be compatible with zig master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
max-legrand committed Feb 11, 2025
1 parent c2e3122 commit 3e9854e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/Parser.zig
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ fn parseOptionValue(
// If we have consumed a single value only, check if the policy of an arg
// allows to return it as a single value.
if (values.items.len == 1 and !arg.hasProperty(.takes_multiple_values)) {
const value = values.pop();
const value = values.pop().?;
values.deinit();
// No verification required here as it is already verfied while consuming.
return MatchedArgValue.initSingle(value);
Expand Down

0 comments on commit 3e9854e

Please sign in to comment.