Skip to content

Commit 6fccc4d

Browse files
authored
Merge pull request #429 from Superhepper/lint-errors-1.72
Fixes lint errors reported by clippy in rust 1.72.
2 parents 81e7a7f + 3b9cb1d commit 6fccc4d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tss-esapi/tests/integration_tests/abstraction_tests/pcr_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fn test_pcr_read_all() {
119119
)
120120
.expect("Call 3 to pcr_read failed");
121121

122-
vec![read_pcrs_1, read_pcrs_2, read_pcrs_3]
122+
[read_pcrs_1, read_pcrs_2, read_pcrs_3]
123123
.iter()
124124
.enumerate()
125125
.for_each(|(idx, dl)| {

tss-esapi/tests/integration_tests/structures_tests/lists_tests/algorithm_property_list_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::convert::{TryFrom, TryInto};
1313

1414
#[test]
1515
fn test_conversions() {
16-
let expected_algorithm_properties = vec![
16+
let expected_algorithm_properties = [
1717
(AlgorithmIdentifier::Rsa, AlgorithmAttributes(1)),
1818
(AlgorithmIdentifier::Aes, AlgorithmAttributes(2)),
1919
];
@@ -61,7 +61,7 @@ fn test_conversions() {
6161

6262
#[test]
6363
fn test_valid_conversion_vector() {
64-
let expected_algorithm_properties = vec![
64+
let expected_algorithm_properties = [
6565
(AlgorithmIdentifier::Rsa, AlgorithmAttributes(1)),
6666
(AlgorithmIdentifier::Aes, AlgorithmAttributes(2)),
6767
];

tss-esapi/tests/integration_tests/structures_tests/lists_tests/command_code_list_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::convert::{TryFrom, TryInto};
1212

1313
#[test]
1414
fn test_conversions() {
15-
let expected_command_codes = vec![
15+
let expected_command_codes = [
1616
CommandCode::ChangeEps,
1717
CommandCode::ChangePps,
1818
CommandCode::Clear,
@@ -83,7 +83,7 @@ fn test_conversions() {
8383

8484
#[test]
8585
fn test_valid_conversion_vector() {
86-
let expected_command_codes = vec![
86+
let expected_command_codes = [
8787
CommandCode::ChangeEps,
8888
CommandCode::ChangePps,
8989
CommandCode::Clear,

0 commit comments

Comments
 (0)