From: Matt Corallo Date: Tue, 23 Jan 2024 20:09:51 +0000 (+0000) Subject: Ignore `Send` and `Sync` bounds when resolving generics X-Git-Tag: v0.0.121.0^2~10 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=92558d410a390f31fcec3b628db0d0d3151bd3a9;p=ldk-c-bindings Ignore `Send` and `Sync` bounds when resolving generics --- diff --git a/c-bindings-gen/src/types.rs b/c-bindings-gen/src/types.rs index 3ac40cf..f83c627 100644 --- a/c-bindings-gen/src/types.rs +++ b/c-bindings-gen/src/types.rs @@ -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;