From b4109ae989b146b0b9a8f20444c3e6061ffeb0ee Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sun, 7 Jan 2024 16:14:58 -0700 Subject: [PATCH] Fix clippy --- cms/tests/enveloped_data.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/tests/enveloped_data.rs b/cms/tests/enveloped_data.rs index 13744995c..9cd7019e8 100644 --- a/cms/tests/enveloped_data.rs +++ b/cms/tests/enveloped_data.rs @@ -217,7 +217,7 @@ fn reencode_enveloped_data_pwri_test() { ); let enc_pbkdf2 = kdf_alg.parameters.as_ref().unwrap().to_der().unwrap(); let pbkdf2 = Pbkdf2Params::from_der(enc_pbkdf2.as_slice()).unwrap(); - assert_eq!(hex!("7F EE A8 FD 56 8E 8F 07"), pbkdf2.salt.as_ref()); + assert_eq!(hex!("7F EE A8 FD 56 8E 8F 07"), pbkdf2.salt); assert_eq!(2048, pbkdf2.iteration_count); assert_eq!( ObjectIdentifier::new_unwrap("1.2.840.113549.1.9.16.3.9"), @@ -431,7 +431,7 @@ fn reencode_enveloped_data_multi_test() { ); let enc_pbkdf2 = kdf_alg.parameters.as_ref().unwrap().to_der().unwrap(); let pbkdf2 = Pbkdf2Params::from_der(enc_pbkdf2.as_slice()).unwrap(); - assert_eq!(hex!("39 04 A7 33 A0 6A 1B 27"), pbkdf2.salt.as_ref()); + assert_eq!(hex!("39 04 A7 33 A0 6A 1B 27"), pbkdf2.salt); assert_eq!(2048, pbkdf2.iteration_count); assert_eq!( ObjectIdentifier::new_unwrap("1.2.840.113549.1.9.16.3.9"),