We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d49e463 commit c1d3561Copy full SHA for c1d3561
src/lib.rs
@@ -209,7 +209,6 @@ impl Not for Choice {
209
impl From<u8> for Choice {
210
#[inline]
211
fn from(input: u8) -> Choice {
212
- debug_assert!((input == 0u8) | (input == 1u8));
213
// Our goal is to prevent the compiler from inferring that the value held inside the
214
// resulting `Choice` struct is really an `i1` instead of an `i8`.
215
Choice(core::hint::black_box(input))
0 commit comments