Implement Clone for CrosslinkRecord

This commit is contained in:
Paul Hauner 2018-07-15 12:13:27 +10:00
parent f025600966
commit 20f976ca40

View File

@ -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
*/