Skip to content

Commit

Permalink
fix: make _lift for enum generated code pub (#950)
Browse files Browse the repository at this point in the history
Signed-off-by: Brian H <[email protected]>
  • Loading branch information
fibonacci1729 authored May 16, 2024
1 parent 64fe023 commit b342747
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/rust/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}}
Expand Down

0 comments on commit b342747

Please sign in to comment.