switch iterator to vec

This commit is contained in:
Aiden McClelland
2022-08-01 12:29:01 -06:00
parent f3a01980cf
commit 5924c4e897

View File

@@ -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),*))?