Skip to content

Commit 195eaf0

Browse files
committed
Use From instead of Into for better plausible deniability
1 parent a696c83 commit 195eaf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub fn give_up<T: 'static>() -> Box<T> {
7070
};
7171

7272
for _ in 0..size {
73-
v.push((rng.rand_u32() & Into::<u32>::into(u8::MAX)) as u8);
73+
v.push((rng.rand_u32() & u32::from(u8::MAX)) as u8);
7474
}
7575

7676
crate::transmute(v.into_boxed_slice())

0 commit comments

Comments
 (0)