diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2021-03-23 12:21:12 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2021-03-23 12:21:12 -0300 |
commit | 36ca2f59cb1dbd6e63fafaddb76b25c260b44a98 (patch) | |
tree | 9c6e4ff47e122681bbf5474f741c8c4d53c6489c /src/lib.rs | |
parent | 0a3c097339d3448f8dcab9aa3c0a9b1345e5cebd (diff) |
Fix generics with multiple impl trait in a row
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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::<TokenStream>()); attributes.into_iter().chain(output.into_iter()).collect() } |