dsl: reduce number of lifetime arguments
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-05-21 02:50:21 +03:00
parent 2048dd2263
commit 776cea6f1b
9 changed files with 126 additions and 108 deletions

View file

@ -149,9 +149,9 @@ impl ToTokens for CommandDef {
}
}
/// Generated by [tengri_proc::command].
impl<'source> ::tengri::dsl::Namespace<'source, #state> for #command_enum {
fn take_from <'state> (
state: &'state #state,
impl ::tengri::dsl::Namespace<#state> for #command_enum {
fn take_from <'source> (
state: &#state,
words: &mut ::tengri::dsl::TokenIter<'source>
) -> Perhaps<Self> {
let mut words = words.clone();