From 32fd0e139cb9933614b50ea7c0ac1c34d17fe1af Mon Sep 17 00:00:00 2001 From: Bernd Krietenstein Date: Wed, 13 Dec 2023 16:33:09 +0100 Subject: [PATCH] Clippy... --- cms/tests/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/tests/builder.rs b/cms/tests/builder.rs index bdd3d5040..ff7d70d52 100644 --- a/cms/tests/builder.rs +++ b/cms/tests/builder.rs @@ -840,7 +840,7 @@ fn test_create_password_recipient_info() { let recipient_info = enveloped_data.recip_infos.0.get(0).unwrap(); if let RecipientInfo::Pwri(recipient_info) = recipient_info { let decrypted_content_encryption_key = - cms_pwri_decrypt_content_encryption_key(recipient_info, &challenge_password); + cms_pwri_decrypt_content_encryption_key(recipient_info, challenge_password); let key = cipher::Key::>::from_slice( decrypted_content_encryption_key.as_slice(), ) @@ -857,7 +857,7 @@ fn test_create_password_recipient_info() { .unwrap() .as_bytes(), ); - let content = cbc::Decryptor::::new(&key, &iv) + let content = cbc::Decryptor::::new(&key, iv) .decrypt_padded_vec_mut::( enveloped_data .encrypted_content