From 2b4f4288903a0952f44bdc916b68c07a3227c92c Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 31 May 2020 21:55:44 -0300 Subject: [PATCH] fix typo --- src/runner.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runner.zig b/src/runner.zig index a1bed65..efaf568 100644 --- a/src/runner.zig +++ b/src/runner.zig @@ -234,14 +234,14 @@ pub const Runner = struct { defer params.deinit(); inline for (@typeInfo(@TypeOf(command.parameters)).Struct.fields) |cmd_field| { - try params.put( + _ = try params.put( cmd_field.name, @field(command.parameters, cmd_field.name), ); } var image = try self.getImage(); - try image.runCustomPlugin(typ.plugin_type, pos, map); + try image.runCustomPlugin(@TypeOf(command).plugin_type, pos, ¶ms); } fn newRunCommandSingle( @@ -261,7 +261,7 @@ pub const Runner = struct { const ctype = typ.command_type; switch (ctype) { .lv2_command => try self.executeLV2Command(command.*), - .plugin_command => try self.executePlugin(command.*), + .custom_command => try self.executePlugin(command.*), else => @panic("TODO support command type"), } }