fix tuple indexing

This commit is contained in:
Ponj 2024-10-12 14:07:14 -04:00
parent 2d5291c07b
commit 98100d3465
Signed by: p6nj
GPG key ID: 6FED68D87C479A59

View file

@ -96,11 +96,11 @@ fn impl_quick_modifier_parser(ast: DeriveInput) -> TokenStream {
( (
nom::combinator::value( nom::combinator::value(
true, true,
nom::character::complete::char(#name::#variant_name(Default::default()).token()[0]) nom::character::complete::char(#name::#variant_name(Default::default()).token().0)
), ),
nom::combinator::value( nom::combinator::value(
false, false,
nom::character::complete::char(#name::#variant_name(Default::default()).token()[1]) nom::character::complete::char(#name::#variant_name(Default::default()).token().1)
) )
) )
), ),