Merge pull request #6 from teloxide/dev

Merge dev
This commit is contained in:
Temirkhan Myrzamadi 2020-07-25 20:03:18 +06:00 committed by GitHub
commit f5dbfb246c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ pub fn impl_parse_args_unnamed(
data.unnamed.iter().map(|f| &f.ty),
data.unnamed.len(),
);
let iter = 0..data.unnamed.len();
let iter = (0..data.unnamed.len()).map(syn::Index::from);
let mut initialization = quote! {};
for i in iter {
initialization.extend(quote! { arguments.#i, })
@ -54,7 +54,7 @@ pub fn impl_parse_args_named(
data.named.iter().map(|f| &f.ty),
data.named.len(),
);
let i = 0..data.named.len();
let i = (0..data.named.len()).map(syn::Index::from);
let name = data.named.iter().map(|f| f.ident.as_ref().unwrap());
let res = quote! {
{