Loading system/gd/rust/topshim/macros/src/lib.rs +6 −10 Original line number Diff line number Diff line Loading @@ -103,8 +103,7 @@ pub fn cb_variant(input: TokenStream) -> TokenStream { let ident = format_ident!("_{}", i); params.extend(quote! { #ident: #start, }); match end { Some(v) => { if let Some(v) = end { // Argument needs an into translation if it doesn't match the start if start != v { args.extend(quote! { #end::from(#ident), }); Loading @@ -112,9 +111,6 @@ pub fn cb_variant(input: TokenStream) -> TokenStream { args.extend(quote! {#ident,}); } } // If there's no end type, just consume it instead. None => (), } } let mut stmts = proc_macro2::TokenStream::new(); Loading Loading
system/gd/rust/topshim/macros/src/lib.rs +6 −10 Original line number Diff line number Diff line Loading @@ -103,8 +103,7 @@ pub fn cb_variant(input: TokenStream) -> TokenStream { let ident = format_ident!("_{}", i); params.extend(quote! { #ident: #start, }); match end { Some(v) => { if let Some(v) = end { // Argument needs an into translation if it doesn't match the start if start != v { args.extend(quote! { #end::from(#ident), }); Loading @@ -112,9 +111,6 @@ pub fn cb_variant(input: TokenStream) -> TokenStream { args.extend(quote! {#ident,}); } } // If there's no end type, just consume it instead. None => (), } } let mut stmts = proc_macro2::TokenStream::new(); Loading