mirror of
https://github.com/Start9Labs/rpc-toolkit.git
synced 2026-03-26 02:11:56 +00:00
switch iterator to vec
This commit is contained in:
@@ -941,7 +941,7 @@ fn cli_handler(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Options::Leaf(opt) if matches!(opt.exec_ctx, ExecutionContext::Standard) => {
|
Options::Leaf(opt) if matches!(opt.exec_ctx, ExecutionContext::Standard) => {
|
||||||
let param = param.map(|_| quote! { unreachable!() });
|
let param = param.into_iter().map(|_| quote! { unreachable!() });
|
||||||
let invocation = if opt.is_async {
|
let invocation = if opt.is_async {
|
||||||
quote! {
|
quote! {
|
||||||
rt_ref.block_on(#fn_path(#(#param),*))?
|
rt_ref.block_on(#fn_path(#(#param),*))?
|
||||||
|
|||||||
Reference in New Issue
Block a user