From 03a4404a17a6d4661f13ca92ae9ed6f2cc2f2073 Mon Sep 17 00:00:00 2001 From: torque Date: Mon, 15 Jan 2024 22:41:01 -0800 Subject: [PATCH] parser: stray var -> const Surprised there wasn't more of this in here, to be honest. --- source/parser.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/parser.zig b/source/parser.zig index 0b82a09..64e8dca 100644 --- a/source/parser.zig +++ b/source/parser.zig @@ -160,7 +160,7 @@ pub fn Parser(comptime command: anytype, comptime callback: anytype) type { pub fn execute(self: *@This(), context: UserContext) anyerror!void { const args = try std.process.argsAlloc(self.allocator); - var env = try std.process.getEnvMap(self.allocator); + const env = try std.process.getEnvMap(self.allocator); if (args.len < 1) return ParseError.EmptyArgs;