Skip to content

Commit 5778299

Browse files
tgonzalezorlandoarmgowthamsk-arm
authored andcommitted
Fix formatting erros
Signed-off-by: Tomás González <[email protected]>
1 parent 0fe3a93 commit 5778299

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

parsec-openssl-provider/src/keymgmt/mod.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use crate::{
99
};
1010
use parsec_openssl2::types::VOID_PTR;
1111
use parsec_openssl2::*;
12-
use picky_asn1;
1312
use picky_asn1_x509::RsaPublicKey;
1413
use std::slice;
1514
use std::sync::{Arc, RwLock};
@@ -256,7 +255,7 @@ unsafe fn parsec_rsa_set_public_params(params: *mut OSSL_PARAM) -> Result<RsaPub
256255

257256
// Create a public key and return
258257
let public_key = RsaPublicKey {
259-
modulus: modulus,
258+
modulus,
260259
public_exponent: exp,
261260
};
262261
Ok(public_key)
@@ -422,7 +421,7 @@ pub unsafe extern "C" fn parsec_provider_keymgmt_dup(
422421
pub unsafe extern "C" fn parsec_provider_kmgmt_query_operation_name(
423422
_operation_id: std::os::raw::c_int,
424423
) -> *const std::os::raw::c_char {
425-
return PARSEC_PROVIDER_RSA_NAME.as_ptr() as *const std::os::raw::c_char;
424+
PARSEC_PROVIDER_RSA_NAME.as_ptr() as *const std::os::raw::c_char
426425
}
427426

428427
const OSSL_FUNC_KEYMGMT_QUERY_OPERATION_NAME_PTR: KeyMgmtQueryOperationNamePtr =
@@ -582,7 +581,7 @@ fn test_kmgmt_has() {
582581

583582
unsafe {
584583
parsec_provider_kmgmt_free(keyobj);
585-
parsec_provider_teardown(provctx as *const OSSL_PROVIDER);
584+
parsec_provider_teardown(provctx as _);
586585
}
587586
}
588587

@@ -709,7 +708,7 @@ fn test_kmgmt_match() {
709708
unsafe {
710709
parsec_provider_kmgmt_free(keyobj1);
711710
parsec_provider_kmgmt_free(keyobj2);
712-
parsec_provider_teardown(provctx as *const OSSL_PROVIDER);
711+
parsec_provider_teardown(provctx as _);
713712
}
714713
}
715714

@@ -766,7 +765,7 @@ fn test_kmgmt_import() {
766765

767766
unsafe {
768767
parsec_provider_kmgmt_free(keyctx);
769-
parsec_provider_teardown(provctx as *const OSSL_PROVIDER);
768+
parsec_provider_teardown(provctx as _);
770769
}
771770
}
772771

parsec-openssl-provider/src/signature/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,6 @@ fn test_sign_newctx() {
396396

397397
unsafe {
398398
parsec_provider_signature_freectx(sig_ctx);
399-
parsec_provider_teardown(provctx as *const OSSL_PROVIDER);
399+
parsec_provider_teardown(provctx as _);
400400
}
401401
}

0 commit comments

Comments
 (0)