mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 19:56:44 +01:00
re foreign trait constraints
This commit is contained in:
parent
ddf0c05d5f
commit
cbd28a5934
10 changed files with 30 additions and 24 deletions
|
|
@ -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: Take::provide_or_fail(self, words)?,
|
||||
#arg: Take::take_or_fail(self, words)?,
|
||||
});
|
||||
}
|
||||
out
|
||||
|
|
@ -150,7 +150,7 @@ impl ToTokens for CommandDef {
|
|||
}
|
||||
/// Generated by [tengri_proc::command].
|
||||
impl<'n> ::tengri::dsl::Take<'n, #state> for #command_enum {
|
||||
fn provide <'source> (
|
||||
fn take <'source> (
|
||||
state: &#state,
|
||||
words: &mut ::tengri::dsl::TokenIter<'source>
|
||||
) -> Perhaps<Self> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue