Skip to content

Commit

Permalink
Fix warnings caused by tuple index suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RSSchermer committed Oct 23, 2023
1 parent 5ab711f commit 494ecc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion empa_macros/src/abi_sized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn expand_derive_sized(input: &DeriveInput) -> Result<TokenStream, String> {
.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=>
Expand Down

0 comments on commit 494ecc4

Please sign in to comment.