proc: expose: fix output match statement

This commit is contained in:
🪞👃🪞 2025-05-07 12:37:38 +03:00
parent 7df7cb839c
commit c56b08c24e
2 changed files with 10 additions and 2 deletions

View file

@ -92,7 +92,9 @@ impl ToTokens for CommandVariant {
out.append(Group::new(Delimiter::Parenthesis, {
let mut out = TokenStream2::new();
for arg in args.iter() {
if let FnArg::Typed(PatType { attrs, pat, colon_token, ty }) = arg {
if let FnArg::Typed(PatType {
attrs, pat, colon_token, ty
}) = arg {
out.append(LitStr::new(
&format!("{}", quote! { #ty }),
Span::call_site()