From 98100d3465c9246fc8b4daea01df008dc6a38419 Mon Sep 17 00:00:00 2001 From: p6nj Date: Sat, 12 Oct 2024 14:07:14 -0400 Subject: [PATCH] fix tuple indexing --- bng_macros/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bng_macros/src/lib.rs b/bng_macros/src/lib.rs index 3bd47ff..939c7d2 100644 --- a/bng_macros/src/lib.rs +++ b/bng_macros/src/lib.rs @@ -96,11 +96,11 @@ fn impl_quick_modifier_parser(ast: DeriveInput) -> TokenStream { ( nom::combinator::value( 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( false, - nom::character::complete::char(#name::#variant_name(Default::default()).token()[1]) + nom::character::complete::char(#name::#variant_name(Default::default()).token().1) ) ) ),