From 9764cb0ef33a9724a72a476709c7991f0453a31b Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 26 Dec 2018 09:12:11 +1100 Subject: [PATCH] Remove some Default impls from types --- beacon_chain/types/src/beacon_block.rs | 2 +- beacon_chain/types/src/casper_slashing.rs | 2 +- beacon_chain/types/src/proposer_slashing.rs | 2 +- beacon_chain/types/src/slashable_vote_data.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/beacon_chain/types/src/beacon_block.rs b/beacon_chain/types/src/beacon_block.rs index b6ac9e9e02..df8f939e33 100644 --- a/beacon_chain/types/src/beacon_block.rs +++ b/beacon_chain/types/src/beacon_block.rs @@ -4,7 +4,7 @@ use crate::test_utils::TestRandom; use bls::AggregateSignature; use rand::RngCore; -#[derive(Debug, PartialEq, Clone, Default)] +#[derive(Debug, PartialEq, Clone)] pub struct BeaconBlock { pub slot: u64, pub parent_root: Hash256, diff --git a/beacon_chain/types/src/casper_slashing.rs b/beacon_chain/types/src/casper_slashing.rs index a972f22482..f3c1b5d180 100644 --- a/beacon_chain/types/src/casper_slashing.rs +++ b/beacon_chain/types/src/casper_slashing.rs @@ -3,7 +3,7 @@ use super::SlashableVoteData; use crate::test_utils::TestRandom; use rand::RngCore; -#[derive(Debug, PartialEq, Clone, Default)] +#[derive(Debug, PartialEq, Clone)] pub struct CasperSlashing { pub slashable_vote_data_1: SlashableVoteData, pub slashable_vote_data_2: SlashableVoteData, diff --git a/beacon_chain/types/src/proposer_slashing.rs b/beacon_chain/types/src/proposer_slashing.rs index d2d3531128..0ae1c6e663 100644 --- a/beacon_chain/types/src/proposer_slashing.rs +++ b/beacon_chain/types/src/proposer_slashing.rs @@ -4,7 +4,7 @@ use crate::test_utils::TestRandom; use bls::Signature; use rand::RngCore; -#[derive(Debug, PartialEq, Clone, Default)] +#[derive(Debug, PartialEq, Clone)] pub struct ProposerSlashing { pub proposer_index: u32, pub proposal_data_1: ProposalSignedData, diff --git a/beacon_chain/types/src/slashable_vote_data.rs b/beacon_chain/types/src/slashable_vote_data.rs index 9eb3d19842..4d8e2eab30 100644 --- a/beacon_chain/types/src/slashable_vote_data.rs +++ b/beacon_chain/types/src/slashable_vote_data.rs @@ -4,7 +4,7 @@ use crate::test_utils::TestRandom; use bls::AggregateSignature; use rand::RngCore; -#[derive(Debug, PartialEq, Clone, Default)] +#[derive(Debug, PartialEq, Clone)] pub struct SlashableVoteData { pub aggregate_signature_poc_0_indices: Vec, pub aggregate_signature_poc_1_indices: Vec,