Skip to content

Commit

Permalink
removed unnecessary unsafe block
Browse files Browse the repository at this point in the history
  • Loading branch information
brimonk committed Apr 12, 2024
1 parent 976e681 commit 791a1c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions openssl/src/rsa_meth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ impl RsaMethod {
#[corresponds(RSA_meth_set0_app_data)]
#[inline]
pub unsafe fn set_app_data(&self, app_data: *mut c_void) -> Result<(), ErrorStack> {
unsafe {
cvt(ffi::RSA_meth_set0_app_data(self.as_ptr(), app_data))?;
}
cvt(ffi::RSA_meth_set0_app_data(self.as_ptr(), app_data))?;
Ok(())
}

Expand Down

0 comments on commit 791a1c6

Please sign in to comment.