Skip to content

Commit b342747

Browse files
fix: make _lift for enum generated code pub (#950)
Signed-off-by: Brian H <[email protected]>
1 parent 64fe023 commit b342747

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/rust/src/interface.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2219,7 +2219,8 @@ impl<'a> {camel}Borrow<'a>{{
22192219
self.src,
22202220
r#"
22212221
impl {name} {{
2222-
pub(crate) unsafe fn _lift(val: {repr}) -> {name} {{
2222+
#[doc(hidden)]
2223+
pub unsafe fn _lift(val: {repr}) -> {name} {{
22232224
if !cfg!(debug_assertions) {{
22242225
return ::core::mem::transmute(val);
22252226
}}

0 commit comments

Comments
 (0)