projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b1ea57a
)
Drop stale manual path mappings for generic containers
author
Matt Corallo
<git@bluematt.me>
Tue, 12 Oct 2021 02:07:34 +0000
(
02:07
+0000)
committer
Matt Corallo
<git@bluematt.me>
Sat, 16 Oct 2021 02:30:00 +0000
(
02:30
+0000)
These are all mapped as generic containers now so there's no need
for manual mapping entries.
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 8063532e454b169d89dbb0be8b6c2e0283fd8d1c..9220dd1256ce21d7c5c58a4e45aa1501a05adc2b 100644
(file)
--- a/
c-bindings-gen/src/types.rs
+++ b/
c-bindings-gen/src/types.rs
@@
-867,10
+867,6
@@
impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
return Some(full_path);
}
match full_path {
- "Result" => Some("crate::c_types::derived::CResult"),
- "Vec" if !is_ref => Some("crate::c_types::derived::CVec"),
- "Option" => Some(""),
-
// Note that no !is_ref types can map to an array because Rust and C's call semantics
// for arrays are different (https://github.com/eqrion/cbindgen/issues/528)