From 36ca2f59cb1dbd6e63fafaddb76b25c260b44a98 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Tue, 23 Mar 2021 12:21:12 -0300 Subject: Fix generics with multiple impl trait in a row --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index d8e5a15..9473af0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -295,6 +295,7 @@ pub fn impl_trait(item: TokenStream) -> TokenStream { in_generic = true; in_path = true; in_impl = false; + has_injected_generics = false; continue; } }, @@ -341,5 +342,6 @@ pub fn impl_trait(item: TokenStream) -> TokenStream { drop(where_bounds); //eprintln!("attributes: {:#?}", attributes); //eprintln!("OUTPUT: {:#?}", output); + //eprintln!("OUTPUT: {}", (&output).into_iter().cloned().collect::()); attributes.into_iter().chain(output.into_iter()).collect() } -- cgit 1.4.1