Skip to content

Commit

Permalink
Fix clippy lint: unnecessary-cast
Browse files Browse the repository at this point in the history
Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
  • Loading branch information
wiktor-k authored and ionut-arm committed Sep 25, 2023
1 parent 532416e commit f316ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryptoki/src/session/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Session {
unsafe {
Rv::from(get_pkcs11!(self.client(), C_GenerateRandom)(
self.handle(),
result.as_mut_ptr() as *mut u8,
result.as_mut_ptr(),
random_len.try_into()?,
))
.into_result()?;
Expand Down

0 comments on commit f316ec7

Please sign in to comment.