]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Revert "Consider all reference types clonable (because they are)"
authorMatt Corallo <git@bluematt.me>
Tue, 29 Mar 2022 21:02:05 +0000 (21:02 +0000)
committerMatt 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

index 3309ee0ea31aaa4c076da34897ca5957485cc5d4..28e05f8c363deac347ebfc503d1ae60ccbc9d1ce 100644 (file)
@@ -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]) {