mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-07 04:06:48 +01:00
simplify
This commit is contained in:
parent
291b917970
commit
238ac2e888
25 changed files with 1018 additions and 1147 deletions
|
|
@ -150,10 +150,9 @@ impl ToTokens for CommandDef {
|
|||
}
|
||||
/// Generated by [tengri_proc::command].
|
||||
impl ::tengri::dsl::FromDsl<#state> for #command_enum {
|
||||
fn try_from_dsl (
|
||||
state: &#state,
|
||||
value: &impl ::tengri::dsl::Dsl
|
||||
) -> Perhaps<Self> {
|
||||
fn from_dsl (state: &#state, value: &impl ::tengri::dsl::Dsl)
|
||||
-> Perhaps<Self>
|
||||
{
|
||||
use ::tengri::dsl::Val::*;
|
||||
todo!()//Ok(match token { #(#matchers)* _ => None })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue