fix(proc): Command self type

This commit is contained in:
🪞👃🪞 2025-08-23 23:19:23 +03:00
parent e3e3c163da
commit 022bfa3e20

View file

@ -144,7 +144,7 @@ impl ToTokens for CommandDef {
/// mutable pointer to [#state], invoking predefined operations /// mutable pointer to [#state], invoking predefined operations
/// and optionally returning undo history data. /// and optionally returning undo history data.
impl ::tengri::input::Command<#state> for #command_enum { impl ::tengri::input::Command<#state> for #command_enum {
fn execute (self, state: &mut #state) -> Perhaps<Self> { fn execute (&self, state: &mut #state) -> Perhaps<Self> {
match self { #(#implementations)* } match self { #(#implementations)* }
} }
} }