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:
ebcd0c1
)
Revert "Consider all reference types clonable (because they are)"
author
Matt Corallo
<git@bluematt.me>
Tue, 29 Mar 2022 21:02:05 +0000
(21:02 +0000)
committer
Matt Corallo
<git@bluematt.me>
Tue, 29 Mar 2022 22:53:34 +0000
(22:53 +0000)
This reverts commit
291aea2200e01843623a67d42112500b1810d276
.
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 3309ee0ea31aaa4c076da34897ca5957485cc5d4..28e05f8c363deac347ebfc503d1ae60ccbc9d1ce 100644
(file)
--- a/
c-bindings-gen/src/types.rs
+++ b/
c-bindings-gen/src/types.rs
@@
-772,7
+772,6
@@
impl<'a> CrateTypes<'a> {
self.clonable_types.borrow_mut().insert(object);
}
pub fn is_clonable(&self, object: &str) -> bool {
- object.starts_with("&'static ") ||
self.clonable_types.borrow().contains(object)
}
pub fn write_new_template(&self, mangled_container: String, has_destructor: bool, created_container: &[u8]) {