From b3427472ceaee5685d6c641d1845c3a5331c2118 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 16 May 2024 13:12:49 -0600 Subject: [PATCH] fix: make _lift for enum generated code pub (#950) Signed-off-by: Brian H --- crates/rust/src/interface.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/rust/src/interface.rs b/crates/rust/src/interface.rs index 14fa05a0e..69407f760 100644 --- a/crates/rust/src/interface.rs +++ b/crates/rust/src/interface.rs @@ -2219,7 +2219,8 @@ impl<'a> {camel}Borrow<'a>{{ self.src, r#" impl {name} {{ - pub(crate) unsafe fn _lift(val: {repr}) -> {name} {{ + #[doc(hidden)] + pub unsafe fn _lift(val: {repr}) -> {name} {{ if !cfg!(debug_assertions) {{ return ::core::mem::transmute(val); }}