From 07f93ba7589f072c38671ae5c7f2955dbc58caab Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Wed, 30 Sep 2020 14:28:28 +1000 Subject: [PATCH] Fix Clippy lints --- .../slashing_protection/src/bin/test_generator.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/validator_client/slashing_protection/src/bin/test_generator.rs b/validator_client/slashing_protection/src/bin/test_generator.rs index de29a086e9a..3522adf3fcc 100644 --- a/validator_client/slashing_protection/src/bin/test_generator.rs +++ b/validator_client/slashing_protection/src/bin/test_generator.rs @@ -17,6 +17,7 @@ fn metadata(genesis_validators_root: Hash256) -> InterchangeMetadata { } } +#[allow(clippy::type_complexity)] fn interchange(data: Vec<(usize, Vec, Vec<(u64, u64)>)>) -> Interchange { let data = data .into_iter() @@ -75,8 +76,8 @@ fn main() { "single_validator_single_block_and_attestation", interchange(vec![(0, vec![32], vec![(15, 20)])]), ) - .with_blocks(single_validator_blocks.clone()) - .with_attestations(single_validator_attestations.clone()), + .with_blocks(single_validator_blocks) + .with_attestations(single_validator_attestations), TestCase::new( "single_validator_genesis_attestation", interchange(vec![(0, vec![], vec![(0, 0)])]),