From 022bfa3e20c7333cab15e044dd0d52a6de4fafb0 Mon Sep 17 00:00:00 2001 From: unspeaker Date: Sat, 23 Aug 2025 23:19:23 +0300 Subject: [PATCH] fix(proc): Command self type --- proc/src/proc_command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/src/proc_command.rs b/proc/src/proc_command.rs index 48ae0fe..12347ee 100644 --- a/proc/src/proc_command.rs +++ b/proc/src/proc_command.rs @@ -144,7 +144,7 @@ impl ToTokens for CommandDef { /// mutable pointer to [#state], invoking predefined operations /// and optionally returning undo history data. impl ::tengri::input::Command<#state> for #command_enum { - fn execute (self, state: &mut #state) -> Perhaps { + fn execute (&self, state: &mut #state) -> Perhaps { match self { #(#implementations)* } } }