Implement Clone for CrosslinkRecord
This commit is contained in:
parent
f025600966
commit
20f976ca40
@ -1,6 +1,7 @@
|
|||||||
use super::utils::types::Sha256Digest;
|
use super::utils::types::Sha256Digest;
|
||||||
use super::rlp::{ RlpStream, Encodable };
|
use super::rlp::{ RlpStream, Encodable };
|
||||||
|
|
||||||
|
#[derive(Copy)]
|
||||||
pub struct CrosslinkRecord {
|
pub struct CrosslinkRecord {
|
||||||
pub epoch: u64,
|
pub epoch: u64,
|
||||||
pub hash: Sha256Digest
|
pub hash: Sha256Digest
|
||||||
@ -15,6 +16,10 @@ impl CrosslinkRecord {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Clone for CrosslinkRecord {
|
||||||
|
fn clone(&self) -> CrosslinkRecord { *self }
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RLP Encoding
|
* RLP Encoding
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user