command: Remove allocator arg

This commit is contained in:
Hugo Machet
2022-02-08 12:27:32 +01:00
committed by Isaac Freund
parent da59632cea
commit 89433073d6
25 changed files with 44 additions and 106 deletions

View File

@ -361,7 +361,7 @@ fn runMappedCommand(self: *Self, mapping: *const Mapping) void {
var out: ?[]const u8 = null;
defer if (out) |s| util.gpa.free(s);
const args = mapping.command_args;
command.run(util.gpa, self, args, &out) catch |err| {
command.run(self, args, &out) catch |err| {
const failure_message = switch (err) {
command.Error.Other => out.?,
else => command.errToMsg(err),