projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28b0ccf
)
Ignore `Send` and `Sync` bounds when resolving generics
author
Matt Corallo
<git@bluematt.me>
Tue, 23 Jan 2024 20:09:51 +0000
(20:09 +0000)
committer
Matt Corallo
<git@bluematt.me>
Tue, 23 Jan 2024 21:59:12 +0000
(21:59 +0000)
c-bindings-gen/src/types.rs
patch
|
blob
|
history
diff --git
a/c-bindings-gen/src/types.rs
b/c-bindings-gen/src/types.rs
index 3ac40cfa5600067c8a471d0add66562b1e1ce7f7..f83c62741074039f8dce268b1df9f9486d0fca5d 100644
(file)
--- 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;