Skip to content

Commit

Permalink
Use From instead of Into for better plausible deniability
Browse files Browse the repository at this point in the history
  • Loading branch information
antifuchs committed Feb 22, 2024
1 parent a696c83 commit 195eaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub fn give_up<T: 'static>() -> Box<T> {
};

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

crate::transmute(v.into_boxed_slice())
Expand Down

0 comments on commit 195eaf0

Please sign in to comment.