Add clone method to some types

This commit is contained in:
Paul Hauner 2018-12-13 17:32:17 +11:00
parent 06e1ee0e5f
commit 220a5bad76
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ use super::shard_reassignment_record::ShardReassignmentRecord;
use super::validator_record::ValidatorRecord;
use super::Hash256;
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub struct BeaconState {
// Misc
pub slot: u64,

View File

@ -1,6 +1,6 @@
use super::Hash256;
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub struct CandidatePoWReceiptRootRecord {
pub candidate_pow_receipt_root: Hash256,
pub votes: u64,

View File

@ -1,4 +1,4 @@
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub struct ShardReassignmentRecord {
pub validator_index: u64,
pub shard: u64,