Skip to content

Commit

Permalink
Merge pull request #429 from Superhepper/lint-errors-1.72
Browse files Browse the repository at this point in the history
Fixes lint errors reported by clippy in rust 1.72.
  • Loading branch information
ionut-arm authored Aug 29, 2023
2 parents 81e7a7f + 3b9cb1d commit 6fccc4d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)| {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
];
Expand Down Expand Up @@ -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)),
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6fccc4d

Please sign in to comment.