diff --git a/empa_macros/src/abi_sized.rs b/empa_macros/src/abi_sized.rs index c41f3cb..4c5aa53 100644 --- a/empa_macros/src/abi_sized.rs +++ b/empa_macros/src/abi_sized.rs @@ -23,7 +23,7 @@ pub fn expand_derive_sized(input: &DeriveInput) -> Result { .ident .clone() .map(|i| i.into_token_stream()) - .unwrap_or(position.into_token_stream()); + .unwrap_or(syn::Index::from(position).into_token_stream()); let span = field.span(); quote_spanned! {span=>