diff --git a/tss-esapi/tests/integration_tests/abstraction_tests/pcr_tests.rs b/tss-esapi/tests/integration_tests/abstraction_tests/pcr_tests.rs index 33aa7280..296eff3d 100644 --- a/tss-esapi/tests/integration_tests/abstraction_tests/pcr_tests.rs +++ b/tss-esapi/tests/integration_tests/abstraction_tests/pcr_tests.rs @@ -119,7 +119,7 @@ fn test_pcr_read_all() { ) .expect("Call 3 to pcr_read failed"); - vec![read_pcrs_1, read_pcrs_2, read_pcrs_3] + [read_pcrs_1, read_pcrs_2, read_pcrs_3] .iter() .enumerate() .for_each(|(idx, dl)| { diff --git a/tss-esapi/tests/integration_tests/structures_tests/lists_tests/algorithm_property_list_tests.rs b/tss-esapi/tests/integration_tests/structures_tests/lists_tests/algorithm_property_list_tests.rs index 8abec115..a14ed31a 100644 --- a/tss-esapi/tests/integration_tests/structures_tests/lists_tests/algorithm_property_list_tests.rs +++ b/tss-esapi/tests/integration_tests/structures_tests/lists_tests/algorithm_property_list_tests.rs @@ -13,7 +13,7 @@ use std::convert::{TryFrom, TryInto}; #[test] fn test_conversions() { - let expected_algorithm_properties = vec![ + let expected_algorithm_properties = [ (AlgorithmIdentifier::Rsa, AlgorithmAttributes(1)), (AlgorithmIdentifier::Aes, AlgorithmAttributes(2)), ]; @@ -61,7 +61,7 @@ fn test_conversions() { #[test] fn test_valid_conversion_vector() { - let expected_algorithm_properties = vec![ + let expected_algorithm_properties = [ (AlgorithmIdentifier::Rsa, AlgorithmAttributes(1)), (AlgorithmIdentifier::Aes, AlgorithmAttributes(2)), ]; diff --git a/tss-esapi/tests/integration_tests/structures_tests/lists_tests/command_code_list_tests.rs b/tss-esapi/tests/integration_tests/structures_tests/lists_tests/command_code_list_tests.rs index d84138d9..c1ecc4f4 100644 --- a/tss-esapi/tests/integration_tests/structures_tests/lists_tests/command_code_list_tests.rs +++ b/tss-esapi/tests/integration_tests/structures_tests/lists_tests/command_code_list_tests.rs @@ -12,7 +12,7 @@ use std::convert::{TryFrom, TryInto}; #[test] fn test_conversions() { - let expected_command_codes = vec![ + let expected_command_codes = [ CommandCode::ChangeEps, CommandCode::ChangePps, CommandCode::Clear, @@ -83,7 +83,7 @@ fn test_conversions() { #[test] fn test_valid_conversion_vector() { - let expected_command_codes = vec![ + let expected_command_codes = [ CommandCode::ChangeEps, CommandCode::ChangePps, CommandCode::Clear,