Skip to content

Commit

Permalink
style: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tensorush committed Jul 20, 2024
1 parent 66afcac commit efbf318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub fn main() !void {
};

var arena = std.heap.ArenaAllocator.init(gpa.allocator());
defer arena.deinit();
const allocator = arena.allocator();
defer arena.deinit();

var res = try clap.parse(clap.Help, &PARAMS, PARSERS, .{ .allocator = allocator });
defer res.deinit();
Expand Down
2 changes: 1 addition & 1 deletion src/templates/exe/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pub fn main() !void {

// Set up arena allocator.
var arena = std.heap.ArenaAllocator.init(gpa.allocator());
defer arena.deinit();
const allocator = arena.allocator();
defer arena.deinit();

// Set up CLI argument parsing.
var res = try clap.parse(clap.Help, &PARAMS, clap.parsers.default, .{ .allocator = allocator });
Expand Down

0 comments on commit efbf318

Please sign in to comment.