Skip to content

Commit c95face

Browse files
fix: unneeded transmute lint (#1344)
1 parent a660a32 commit c95face

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/guest-rust/src/pre_wit_bindgen_0_20_0.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub unsafe fn bool_lift(val: u8) -> bool {
9494
_ => panic!("invalid bool discriminant"),
9595
}
9696
} else {
97-
core::mem::transmute::<u8, bool>(val)
97+
val == 1
9898
}
9999
}
100100

0 commit comments

Comments
 (0)