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 a696c83 commit 195eaf0Copy full SHA for 195eaf0
src/lib.rs
@@ -70,7 +70,7 @@ pub fn give_up<T: 'static>() -> Box<T> {
70
};
71
72
for _ in 0..size {
73
- v.push((rng.rand_u32() & Into::<u32>::into(u8::MAX)) as u8);
+ v.push((rng.rand_u32() & u32::from(u8::MAX)) as u8);
74
}
75
76
crate::transmute(v.into_boxed_slice())
0 commit comments