wip: fix dsl
Some checks failed
/ build (push) Has been cancelled

This commit is contained in:
🪞👃🪞 2025-07-16 00:10:03 +03:00
parent ca4c558eab
commit e72225f83c
11 changed files with 421 additions and 574 deletions

View file

@ -84,7 +84,7 @@ impl ToTokens for CommandDef {
let mut out = TokenStream2::new();
for (arg, _ty) in arm.args() {
write_quote_to(&mut out, quote! {
#arg: DslFrom::dsl_from(self, words, ||"command error")?,
#arg: FromDsl::from_dsl(self, words, ||"command error")?,
});
}
out
@ -149,8 +149,8 @@ impl ToTokens for CommandDef {
}
}
/// Generated by [tengri_proc::command].
impl ::tengri::dsl::DslFrom<#state> for #command_enum {
fn try_dsl_from (
impl ::tengri::dsl::FromDsl<#state> for #command_enum {
fn try_from_dsl (
state: &#state,
value: &impl ::tengri::dsl::Dsl
) -> Perhaps<Self> {