diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2021-04-22 11:10:09 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2021-04-22 11:10:09 -0300 |
commit | a0f77cbba537514f84f64c5be660f2bdcd69782f (patch) | |
tree | 133abaff9d49703c27d6d3717361f2dfb3947905 /src/lib.rs | |
parent | 36ca2f59cb1dbd6e63fafaddb76b25c260b44a98 (diff) |
Fix things not being cleaned up correctly
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 9473af0..2a3b90f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -268,6 +268,14 @@ pub fn impl_trait(item: TokenStream) -> TokenStream { } if found.len() == to_remove.len() { found.push(Vec::new()); + in_unsafe = false; + in_impl = false; + in_where = false; + in_path = false; + in_attr_cont = false; + in_generic = false; + has_injected_generics = false; + count = 0; } match tt { &TokenTree::Ident(ref ident) => { |