diff --git a/crates/rust/src/lib.rs b/crates/rust/src/lib.rs index b11a79709..44ae8a6c2 100644 --- a/crates/rust/src/lib.rs +++ b/crates/rust/src/lib.rs @@ -405,7 +405,7 @@ pub unsafe fn bool_lift(val: u8) -> bool { _ => panic!(\"invalid bool discriminant\"), } } else { - ::core::mem::transmute::(val) + val != 0 } } ",