diff --git a/strum_macros/src/macros/enum_iter.rs b/strum_macros/src/macros/enum_iter.rs index 5e81001..f8a2070 100644 --- a/strum_macros/src/macros/enum_iter.rs +++ b/strum_macros/src/macros/enum_iter.rs @@ -131,7 +131,7 @@ pub fn enum_iter_inner(ast: &DeriveInput) -> syn::Result { ::core::option::Option::None } else { self.idx = idx; - self.get(idx - 1) + #iter_name::get(self, idx - 1) } } } @@ -154,7 +154,7 @@ pub fn enum_iter_inner(ast: &DeriveInput) -> syn::Result { ::core::option::Option::None } else { self.back_idx = back_idx; - self.get(#variant_count - self.back_idx) + #iter_name::get(self, #variant_count - self.back_idx) } } }