Fix clippy lints

This commit is contained in:
Aaron Hill
2020-07-13 21:16:57 -04:00
committed by Michael Vines
parent fed69e96a9
commit e7387f60a7

View File

@ -82,7 +82,7 @@ impl Parse for RespanInput {
respan_using: ident.span(), respan_using: ident.span(),
}) })
} }
val @ _ => Err(syn::Error::new_spanned( val => Err(syn::Error::new_spanned(
val, val,
"expected None-delimited group", "expected None-delimited group",
)), )),
@ -129,7 +129,7 @@ pub fn respan(input: TokenStream) -> TokenStream {
t t
}) })
.collect(); .collect();
return TokenStream::from(to_respan); TokenStream::from(to_respan)
} }
#[proc_macro] #[proc_macro]