Ignore `Send` and `Sync` bounds when resolving generics
[ldk-c-bindings] / c-bindings-gen / src / types.rs
index 3ac40cfa5600067c8a471d0add66562b1e1ce7f7..f83c62741074039f8dce268b1df9f9486d0fca5d 100644 (file)
@@ -294,6 +294,8 @@ impl<'a, 'p: 'a> GenericTypes<'a, 'p> {
                                                                if let syn::TypeParamBound::Trait(trait_bound) = bound {
                                                                        if let Some(id) = trait_bound.path.get_ident() {
                                                                                if format!("{}", id) == "Sized" { continue; }
+                                                                               if format!("{}", id) == "Send" { continue; }
+                                                                               if format!("{}", id) == "Sync" { continue; }
                                                                        }
                                                                        if non_lifetimes_processed { return false; }
                                                                        non_lifetimes_processed = true;