mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 19:56:44 +01:00
dsl,input,output,proc,tui: fix warnings
This commit is contained in:
parent
08593571fa
commit
21832453d9
13 changed files with 19 additions and 20 deletions
|
|
@ -73,16 +73,16 @@ impl ToTokens for CommandDef {
|
|||
out
|
||||
});
|
||||
|
||||
let matchers = exposed.values().map(|arm|{
|
||||
let _matchers = exposed.values().map(|arm|{
|
||||
let key = LitStr::new(&arm.to_key(), Span::call_site());
|
||||
let variant = {
|
||||
let mut out = TokenStream2::new();
|
||||
out.append(arm.to_enum_variant_ident());
|
||||
let ident = &arm.0;
|
||||
let _ident = &arm.0;
|
||||
if arm.has_args() {
|
||||
out.append(Group::new(Delimiter::Brace, {
|
||||
let mut out = TokenStream2::new();
|
||||
for (arg, ty) in arm.args() {
|
||||
for (arg, _ty) in arm.args() {
|
||||
write_quote_to(&mut out, quote! {
|
||||
#arg: Take::take_or_fail(self, words)?,
|
||||
});
|
||||
|
|
@ -193,7 +193,7 @@ impl CommandArm {
|
|||
unreachable!("only typed args should be present at this position");
|
||||
})
|
||||
}
|
||||
fn to_enum_variant_def (&self) -> TokenStream2 {
|
||||
fn _to_enum_variant_def (&self) -> TokenStream2 {
|
||||
let mut out = TokenStream2::new();
|
||||
out.append(self.to_enum_variant_ident());
|
||||
//let ident = &self.0;
|
||||
|
|
|
|||
|
|
@ -79,11 +79,11 @@ impl ToTokens for ViewDef {
|
|||
}
|
||||
}
|
||||
|
||||
fn builtins_with_holes () -> impl Iterator<Item=TokenStream2> {
|
||||
fn _builtins_with_holes () -> impl Iterator<Item=TokenStream2> {
|
||||
builtins_with(quote! { _ }, quote! { _ })
|
||||
}
|
||||
|
||||
fn builtins_with_boxes () -> impl Iterator<Item=TokenStream2> {
|
||||
fn _builtins_with_boxes () -> impl Iterator<Item=TokenStream2> {
|
||||
builtins_with(quote! { _ }, quote! { Box<dyn Render<_>> })
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue