diff --git a/src/state/crosslink_record.rs b/src/state/crosslink_record.rs index 217f9e8f8..ad94a3cec 100644 --- a/src/state/crosslink_record.rs +++ b/src/state/crosslink_record.rs @@ -1,6 +1,7 @@ use super::utils::types::Sha256Digest; use super::rlp::{ RlpStream, Encodable }; +#[derive(Copy)] pub struct CrosslinkRecord { pub epoch: u64, pub hash: Sha256Digest @@ -15,6 +16,10 @@ impl CrosslinkRecord { } } +impl Clone for CrosslinkRecord { + fn clone(&self) -> CrosslinkRecord { *self } +} + /* * RLP Encoding */