Fix Invalid tokens generated with arrays
This commit is contained in:
parent
5f238c7bc4
commit
fc244b8f81
@ -17,7 +17,7 @@ pub fn pushpop_derive_macro(item: TokenStream) -> TokenStream {
|
||||
let recursive = struct_data.fields.iter().map(|f| {
|
||||
let name = &f.ident;
|
||||
let ty = &f.ty;
|
||||
quote_spanned!(f.span()=> let #name = #ty::pop_ne_from(&mut source)?;)
|
||||
quote_spanned!(f.span()=> let #name = <#ty>::pop_ne_from(&mut source)?;)
|
||||
});
|
||||
|
||||
let names = struct_data.fields.iter().map(|f| {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user