mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 03:36:42 +01:00
parent
ddd162f225
commit
1ef898ac32
2 changed files with 1 additions and 24 deletions
|
|
@ -87,7 +87,7 @@ impl ExposeImpl {
|
|||
/// Generated by [tengri_proc::expose].
|
||||
impl ::tengri::dsl::FromDsl<#state> for #t {
|
||||
fn from_dsl (state: &#state, dsl: &impl Dsl) -> Perhaps<Self> {
|
||||
match dsl.key()? {
|
||||
match dsl.word()? {
|
||||
Some("true") => Ok(Some(true)),
|
||||
Some("false") => Ok(Some(false)),
|
||||
_ => match dsl.word()? { #(#variants)* _ => Ok(None) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue