From: Matt Corallo Date: Tue, 29 Mar 2022 21:02:05 +0000 (+0000) Subject: Revert "Consider all reference types clonable (because they are)" X-Git-Tag: v0.0.106.0~2^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=854a12e25b081b68376866090f9d9bb75fe5b297;p=ldk-c-bindings Revert "Consider all reference types clonable (because they are)" This reverts commit 291aea2200e01843623a67d42112500b1810d276. --- diff --git a/c-bindings-gen/src/types.rs b/c-bindings-gen/src/types.rs index 3309ee0..28e05f8 100644 --- 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]) {