mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
This commit is contained in:
parent
34070de5f7
commit
1fc37a5679
4 changed files with 29 additions and 41 deletions
|
|
@ -3,7 +3,7 @@ use crate::*;
|
|||
impl<'t> DslNs<'t, Arc<str>> for App {
|
||||
dsl_exprs!(|app| -> Arc<str> {});
|
||||
dsl_words!(|app| -> Arc<str> {});
|
||||
fn from_literal <D: Dsl> (&self, dsl: &D) -> Perhaps<Arc<str>> {
|
||||
fn from_literal (&self, dsl: impl Dsl) -> Perhaps<Arc<str>> {
|
||||
Ok(dsl.src()?.map(|x|x.into()))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue