From 6ed6c9479197b33fefa011d14f1a8acb06c1d0b7 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 16 Jul 2018 11:56:38 +1000 Subject: [PATCH] Add Clone for validator_record (req. crate update) --- src/state/validator_record.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/state/validator_record.rs b/src/state/validator_record.rs index f03b43b0c3..0f315ecdec 100644 --- a/src/state/validator_record.rs +++ b/src/state/validator_record.rs @@ -48,6 +48,16 @@ impl ValidatorRecord { } } +impl Clone for ValidatorRecord { + fn clone(&self) -> ValidatorRecord { + ValidatorRecord { + pubkey: self.pubkey.clone(), + ..*self + + } + } +} + /* * RLP Encoding */