From 42aa74fd87a95a132ac45eb0652f1064e1e5d670 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 26 Aug 2024 23:28:51 +0000 Subject: [PATCH] Don't attempt to check if a reference is clonable `is_clonable` will only work for non-reference types, so this check was actually generally always false. --- c-bindings-gen/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-bindings-gen/src/types.rs b/c-bindings-gen/src/types.rs index 384b4d4..a1ec4e1 100644 --- a/c-bindings-gen/src/types.rs +++ b/c-bindings-gen/src/types.rs @@ -3210,7 +3210,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> { true } else { let mut inner_c_ty = Vec::new(); - assert!(self.write_c_path_intern(&mut inner_c_ty, &p.path, generics, true, false, ptr_for_ref, with_ref_lifetime, c_ty)); + assert!(self.write_c_path_intern(&mut inner_c_ty, &p.path, generics, false, false, ptr_for_ref, with_ref_lifetime, c_ty)); let inner_ty_str = String::from_utf8(inner_c_ty).unwrap(); if self.is_clonable(&inner_ty_str) { let inner_ty_ident = inner_ty_str.rsplitn(2, "::").next().unwrap(); -- 2.39.5