]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Ignore `Send` and `Sync` bounds when resolving generics
authorMatt Corallo <git@bluematt.me>
Tue, 23 Jan 2024 20:09:51 +0000 (20:09 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Jan 2024 21:59:12 +0000 (21:59 +0000)
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;