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) ) ) ),