Skip to content

Commit c1d3561

Browse files
committed
Revert "Add assertion checking that a u8 bool is valid"
This reverts commit df58872.
1 parent d49e463 commit c1d3561

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ impl Not for Choice {
209209
impl From<u8> for Choice {
210210
#[inline]
211211
fn from(input: u8) -> Choice {
212-
debug_assert!((input == 0u8) | (input == 1u8));
213212
// Our goal is to prevent the compiler from inferring that the value held inside the
214213
// resulting `Choice` struct is really an `i1` instead of an `i8`.
215214
Choice(core::hint::black_box(input))

0 commit comments

Comments
 (0)