Skip to content

Commit

Permalink
Avoid clippy warning on generate macro (bytecodealliance#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine-arcjet authored Mar 7, 2024
1 parent 745f48d commit b6c9de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ pub unsafe fn bool_lift(val: u8) -> bool {
_ => panic!(\"invalid bool discriminant\"),
}
} else {
::core::mem::transmute::<u8, bool>(val)
val != 0
}
}
",
Expand Down

0 comments on commit b6c9de7

Please sign in to comment.